Q3 bezier Tc Generation ..

Started by
6 comments, last by silvermace 21 years, 7 months ago
does anyone know how quake 3 generates its texture coordinates? im guessing bezier interpolation between the control points TC''s? any advice on this would be helpfull thanx /silvermace
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
Advertisement
c''mon, anybody
PLEASE!!!
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
The BSP tools should generate them. They''re modified by shaders before actual rendering also...
i prob shulda been more specific, im talkin bout the Bezier patches texture coords ... see in the BSP there only actualy the Texture Coords for the patches Control Points, so how does quake generate them for the verts it calculates?

i found something else out as well (its weird) the texture coords for the control points (almose all of them) are greater than 1.0, which is strange ..

any more help / ideas?
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
The texture coordinates are stored in exactly the same way as the vertex coordinates - they are bezier patch control points. So to generate the resulting TC''s for the patch, you simply run the initial TC''s through the same procedure you used on the vertex control points, discarding the third coordinate, because it isn''t needed.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Lot''s of work silvermace , lotsa hard work danu :D:D:D
-Da Mr.RaSt3RiZah-
haha, funny komi !
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
ive interpolated the coords, but ther results it horrible, it looks like the static you see when ur TV is not tuned

gtg
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website

This topic is closed to new replies.

Advertisement