Curved Surfaces

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Curved Surfaces

Post by DarkWhoppy »

I saw a post Niko on the Irrlicht news and I was wondering... how does this work? :?:
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

They are simply created when loading quake 3 levels with curved surfaces in it. That's it. :)
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

Thanks 8) , I had to ask because a racing game just isn't right without curves in the race tracks :lol:
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
Shadow_Wolf
Posts: 21
Joined: Tue Nov 18, 2003 5:21 am
Location: Longview, Washington

Post by Shadow_Wolf »

I'm wondering, is it a special entity thats applied to the geometry before it's compiled into the bsp? I've never worked with curved surfaces before, so I'm sorta at a loss of how to implament them into the level...
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

they are called 'beizer patches'

basically its a special geometry, though im not sure if its the same as an 'entity', it does require special code to handle though.

Basically (if you're familiar with Beizer Curves) there are some control points (which is what is actually stored in the .BSP file) from which you can estimate where a curved surface would go. You can create a more or less detailed curve depending on how many iterations you want to go over it with. This is generated at run-time during .BSP file loading.
a screen cap is worth 0x100000 DWORDS
Shadow_Wolf
Posts: 21
Joined: Tue Nov 18, 2003 5:21 am
Location: Longview, Washington

Post by Shadow_Wolf »

Keless, thank you for that bit of info. When I get back to working with Irrlicht this will be one of the first things I look into :D
Post Reply