Hi J-S ;
 
First of all thanks to answer. It's so useful to me. I look at the 
http://www.debevec.org/Probes/  which is so good project about skybox. 
 
When I look your Skybox.cpp source code I couln't see 
loadVerticalCrossCubeMap(cubemap); function. Is it only read the the textures 
and sending a node. Or Is there any specific process in it?
 
Thanks so much..!
 
Ümit UZUN> Date: Thu, 10 Jan 2008 20:54:36 -0500> From: [EMAIL PROTECTED]> To: 
[email protected]> Subject: Re: [osg-users] SKYBOX ?> > Hello 
ümit,> > > I want to skybox for surround my terrain! How can I do ? Which way > 
> is the easiest? And is there any example?> > I don't believe there is any 
example of this in OSG right now. This > has come up a few times recently on 
the list. Here is some code I > developed to create a skybox out of a vertical 
cross cubemap, like the > ones you can find on http://www.debevec.org/Probes/ . 
I hope it is > useful.> > To use it:> > osg::Node* skybox = 
createSkyBoxCubeMap(filename);> > Then put the returned node under your scene 
root. Optionally, you can > pass a stateset as second argument, which will be 
used on the cubemap, > and then you can change the cubemap image at run time. 
This was used > in my Masters project. But the default second argument of zero 
will > just create a stateset.> > The filename must be
  a vertical cross cubemap. It can be in HDR format > or any other format that 
OSG supports. HDR images will be clamped (no > tone mapping is done).> > One 
note: I have found that using the cubemaps on debevec.org, I had > to resize 
them down by 1 pixel (they are 1024x1365, resize it to > 1023x1364) so that the 
dimensions are divisible by the number of > images in each direction (3 
horizontally, 4 vertically). You can use > HDRShop (available at 
http://projects.ict.usc.edu/graphics/HDRShop/) > to resize HDR images. YMMV.> > 
This could be modified to use 6 images, and would actually be much > simpler, 
as most of the code relates to extracting the 6 faces from > the vertical 
cross, and then rotating/mirroring them correctly so they > appear on the 
skybox in the correct orientation.> > Hope this helps,> > J-S> -- > 
______________________________________________________> Jean-Sebastien Guay 
[EMAIL PROTECTED]> http://whitestar02.webhop.org/> > ------------------------
 ----------------------------------------> This message was sent using IMP, the 
Internet Messaging Program.> 
_________________________________________________________________
Windows Live Messenger'ın için Ücretsiz 30 İfadeyi yükle
http://get.live.com
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to