Solved

skybox

Posted on 2002-06-09
7
165 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
7 Comments
 
LVL 8

Accepted Solution

by:
fl0yd earned 50 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

912 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now