Example: Sinewave Reflections in 3d

Posted by omicron1 on Nov. 9, 2006, 1:46 p.m.

Example: I'm submitting my first released example for public use - and all you blogreaders get it first.

http://www.savefile.com/files/241382

This is, basically, an example dealing with "curved" reflections in 3d. This is normally not possible due to the incompatibility of surfaces with d3d native; however, by not actually entering d3d mode, one can render curved reflections using surfaces and sinewave-based drawing techniques. This example also includes some code to work around the depth-problems present in standard "3d in 2d" implementations by the use of depth-setting and position-based drawing.

On that subject, GM7 or 7.1 SHOULD include the ability to use surfaces and d3d simultaneously. I don't care how it's done - just make it happen. It shouldn't be _that_ hard to do…

MMO: Still working on it. I have created a main menu and an option to turn on a "low-detail" mode in which surface use is dramatically decreased. (esp. by removing water reflections)

EotS: I made a deal with my brother regarding multiplayer testing, so I should be able to test it and get it in a working condition very soon.

Comments

Kenon 18 years ago

Sweet effect.

I should really learn surfaces. THey seen incredibly powerul.

Flea1991 18 years ago

Wow, that's awesome man. :)

Flea1991 18 years ago

Umm, the link seems to be broken. :o

sinkhead 18 years ago

Wow, nice.

smaksak 18 years ago

wow, the screenshot looks awesome!

omicron1 18 years ago

The link is not broken. You left-click it, then click "download" on the page that appears.

shadowstrike32 18 years ago

the reflection rendering doesnt work quite correctly on my laptop…

omicron1 18 years ago

Hmm… one other person had a problem with that. I don't know what it could be, aside from video memory problems…

Cesque 18 years ago

I don't really have the registered version of GM, but it looks very good, judging from the screen.

Siert 18 years ago

It looks really sweet and everything, but it just doesn't look real for me…