Skydomes

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  12 December 2003
Skydomes

Hi, i've used some of the skydome systems that people have made public, and im working on my own that is procedurally animated, but i dont know how to make the light system sample its colours from the procedural textures on the dome, if some one can help me out it would be appreciated as i would like to release this here or at scriptspot, as my way of trying to give back to the max community.
thanks
__________________
Struggling perpetually...
 
  12 December 2003
Re: Skydomes

Quote: Originally posted by doug_
Hi, i've used some of the skydome systems that people have made public, and im working on my own that is procedurally animated, but i dont know how to make the light system sample its colours from the procedural textures on the dome, if some one can help me out it would be appreciated as i would like to release this here or at scriptspot, as my way of trying to give back to the max community.
thanks


Hi!

It depends on the textures used.
If you are using a single bitmap, you can read the pixel from the bitmap based on the UV coordinates of the vertex at the dome.

If you are using a complex procedural texture tree, you could use the RenderMap method to get the top level map to a bitmap and read the pixels the same way out of the bitmap.

Or you could go the hacker's way and place a camera close to the point to sample, point it at the sample location and render a 1x1 pixels bitmap to get the actual color seen in the scene. (make sure you disabled all lights and rendered with full self-illumination to get correct results). Then read the single pixel out of the 1x1 bitmap and use its color to create the respective light.

Just a couple of ideas, pick one or use your own...

Cheers,
Bobo
 
  12 December 2003
Re: Re: Skydomes

Quote: Originally posted by Bobo
...Or you could go the hacker's way and place a camera close to the point to sample, point it at the sample location and render a 1x1 pixels bitmap...


hehe, you gotta be some twisted programmer to come up with such a solution!

Martijn
 
  01 January 2006
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 01:18 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.