I don''t get your 3 points to be honest. Maybe I wasn''t clear enough.
Anyway, I think that your link is quite right. Just multiply your frustum matrix with their magical matrix and you''re done. Don''t mistake pre-multiply and post-multiply !
reflections
Okay here's another problem regarding the reflections. Take a close look at this picture - the important parts have been outlined...

The reflections are still created via render to texture. Is there a way around it or do I simply have to be very careful when creating the levels?
Crispy
edit: link
[edited by - crispy on December 5, 2002 8:57:07 AM]

The reflections are still created via render to texture. Is there a way around it or do I simply have to be very careful when creating the levels?
Crispy
edit: link
[edited by - crispy on December 5, 2002 8:57:07 AM]
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
There's a problem ? where ?
If you think that the mountain in the green rectangle should not be visible, let me ask you to cast a ray from the viewpoint to the water and look where the ray is reflected
Also, you say that it's rendered to texture. Does that mean that render-to-texture finally works ?
[edited by - vincoof on December 5, 2002 10:51:42 AM]
If you think that the mountain in the green rectangle should not be visible, let me ask you to cast a ray from the viewpoint to the water and look where the ray is reflected

Also, you say that it's rendered to texture. Does that mean that render-to-texture finally works ?
[edited by - vincoof on December 5, 2002 10:51:42 AM]
Yup - it works - and I couldn''t have done it without you guys - thanks!
As to the working part - it still doesn''t work on tnt''s - I got a gf2mx400 for the weekend - gave me a chance to straighen out the code...
Mmmmm - staring at the picture right now. Maybe it is correct.... That''s what''s the matter with a 2d mind - no 3d capability - brrrrrrr
Crispy

Mmmmm - staring at the picture right now. Maybe it is correct.... That''s what''s the matter with a 2d mind - no 3d capability - brrrrrrr

Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
That''s really strange how mirrors can fake the human eye. As I wrote, all you have to do to be convinced is to cast a ray. Imagine where the ray would be reflected, and see if it should hit the mountain or there is an obstacle to hit before.
Now you just have to implement refractions for the underwater scene !
j/k
Now you just have to implement refractions for the underwater scene !
j/k

quote:
Original post by llvllatrix
How are those ripples going?
None yet. I''d like to look into cubemapping (Look at Blaster''s screenshots!!), but my gpu doesn''t support cube maps. Currently I''m thinking: new graphics card which implies stealing money and/or marrying some rich girl - basically still stealing, only in a pleasant way...
Did you get your reflections working

Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Not yet
I havent had time to work on it. Im sure its drawing the reflected scene but something is wrong ... dont know what. Currently i have to apply to university and i have to keep my grades high so it wont be a while before i finish.

Tell me about it - I got my exams coming up (usually denotes the time to start studying) and my grade average is 3.4 - well it can''t fall below 3 or I''ll lose my scholarship...
Anyway, I got the bugger working, so if you need some code or something, just say so - basically it''s all in vincoof''s earlier posts. And it''s not at all that complicated in retrospect.
Crispy
Anyway, I got the bugger working, so if you need some code or something, just say so - basically it''s all in vincoof''s earlier posts. And it''s not at all that complicated in retrospect.
Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Okay, I''m still a little bit confused about the frustum reflection. Here''s how I''m doing it:
1) Calculate the reflected modelview matrix about the water plane multiplied by the camera position
2) Set matrix mode to modelview
3) Push the old matrix
4) Load the new matrix
5) Update the frustum planes
6) Pop the old matrix
Am I supposed to manipulate only the modelview matrix or do I have to do something to the projection matrix as well?
Crispy
1) Calculate the reflected modelview matrix about the water plane multiplied by the camera position
2) Set matrix mode to modelview
3) Push the old matrix
4) Load the new matrix
5) Update the frustum planes
6) Pop the old matrix
Am I supposed to manipulate only the modelview matrix or do I have to do something to the projection matrix as well?
Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement