RBURKE
January 29th, 2009, 08:41
Okay this is my first post since i discovered this wonderful app, and i hope my question is not one that has been answered before.
So a long time ago i had created a script in blender that would allow me to update a cube map on a per frame basis. The setup basically had an object that i wanted to put a reflection on. Instead of raytracing this reflection however it was simulated using a cube map. The object needing the reflection would have a camera placed inside of it an that camera would capture a image in the positive and negative of each of the world axis. IE one image for -x one for +x one for -y one for +y etc. Now those images where combined in a cube map and then applied to the object to create an approximation of the reflection. It worked very well.
Now what i would like to create is basically the same thing but updated in real time and not just at render time.
So the question is how would i go about making a node that would be able to capture the input from a camera or 6 cameras and convert this to a cube map being used in my shader network.
Is this even possible to do or is this an effect that can only be achieved at render time.
I would really like to be able to make this shader to create simulated reflections in my scene. that would update in realtime to reflect the change in the scenery or objects position.
i had explained this much more clearly in an earlier post but for some reason it is not showing on the forum so i reposted this one. If i am being unclear of what i am looking for please let me know i will try to clarify once im a bit more rested.
Thanks in advance for any advice, examples, or interest.
So a long time ago i had created a script in blender that would allow me to update a cube map on a per frame basis. The setup basically had an object that i wanted to put a reflection on. Instead of raytracing this reflection however it was simulated using a cube map. The object needing the reflection would have a camera placed inside of it an that camera would capture a image in the positive and negative of each of the world axis. IE one image for -x one for +x one for -y one for +y etc. Now those images where combined in a cube map and then applied to the object to create an approximation of the reflection. It worked very well.
Now what i would like to create is basically the same thing but updated in real time and not just at render time.
So the question is how would i go about making a node that would be able to capture the input from a camera or 6 cameras and convert this to a cube map being used in my shader network.
Is this even possible to do or is this an effect that can only be achieved at render time.
I would really like to be able to make this shader to create simulated reflections in my scene. that would update in realtime to reflect the change in the scenery or objects position.
i had explained this much more clearly in an earlier post but for some reason it is not showing on the forum so i reposted this one. If i am being unclear of what i am looking for please let me know i will try to clarify once im a bit more rested.
Thanks in advance for any advice, examples, or interest.