Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

skybox

Posted on 2002-06-09
7
Medium Priority
?
196 Views
Last Modified: 2010-04-02
Hi!
I want to use a skybox in a d3d based application, but i can't disable the clipping... so i have to use a small skybox, and the
result is quite ugly: the user can really see that the sky is a box!!!
please help!!!
(i'm using dx8)
0
Comment
Question by:ralph78
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 8

Accepted Solution

by:
fl0yd earned 200 total points
ID: 7065202
Could you give a bit more information on how the skybox appears to the user. I'm not sure how to take your "the user can really see that the sky is a box".

Nevertheless, have you considered using a skydome instead -- it certainly doesn't exhibit those sharp edges like the box does.

regards,
.f
0
 

Author Comment

by:ralph78
ID: 7065810
well, the skybox is nice, but to be rendered properly, i should scale it with a great value (it should be an infinite). but if i do so, the box isn't rendered anymore cause of the default clipping. and i still don't know how to disable it.
thanks,
Ralph
0
 
LVL 8

Expert Comment

by:fl0yd
ID: 7066161
There are two possibilities for you: Either you turn on/off clipping partially with a call to

IDirect3DDevice8::SetClipStatus

specifying particular planes or you turn off clipping altogether using

IDirect3DDevice8::SetRenderState( D3DRS_CLIPPING, FALSE );

Did that work for you? Hope you are progressing :)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:ralph78
ID: 7066349
i already use
IDirect3DDevice8::SetRenderState( D3DRS_CLIPPING, FALSE );
but it still hide my box if it is to far away...
0
 
LVL 8

Expert Comment

by:fl0yd
ID: 7066683
That's strange -- on my system the IDirect3DDevice8::SetRenderState( D3DRS_CLIPPING, FALSE ) works just as expected. Have you checked the return value using the SUCCEEDED/FAILED-macros to see whether it is really disabled? You can also use
DWORD dwRet = 0;
IDirect3DDevice8::GetRenderState( D3DRS_CLIPPING, &dwRet );
before drawing your skybox, to see if clipping might have been enabled at some other point in your application.
0
 
LVL 11

Expert Comment

by:griessh
ID: 7261752
Dear ralph78

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "fl0yd"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7332913
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question