[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4505: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4507: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4508: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
RabidHaMsTeR.Org • View topic - GL texture mapping for 3ds models

GL texture mapping for 3ds models

Help on what each R4 Module does, and an attempt to document them properly

Moderators: rabidhamster, Rovastar

GL texture mapping for 3ds models

Postby andff » Fri Apr 28, 2006 1:00 am

.
.
a quantum leap forward!
andff
 
Posts: 364
Joined: Mon Aug 23, 2004 10:09 pm
Location: hiigara

Postby rabidhamster » Mon Jul 17, 2006 8:55 am

Yep. you can set different map modes. I think different blend modes are supported too, but can't remember offhand. You can set different textures with glBindTexture too - if i recall the number you give it refers to the Nth 'input' in the GL definition.
rabidhamster
Site Admin
 
Posts: 1100
Joined: Fri Mar 21, 2003 12:31 pm
Location: Cambridge, England

Postby andff » Mon Jul 17, 2006 10:30 am

high!
yes, it is possible to select different textures and blend modes for different meshes loaded with same gl module, but i can't understand how to change texture mapping. for example, simple model of a tv-set - it's body can have texture applied to it as sphere map (good for metallic surfaces), but screen needs to be objectlinear or eyelinear if i want to put some video here.. i've sorted out different combinations, but can't catch the idea.. please, if you'll find free minute to recall in memory how to do this, it will be great!! :) thank you very much!
.
.
a quantum leap forward!
andff
 
Posts: 364
Joined: Mon Aug 23, 2004 10:09 pm
Location: hiigara

Postby rabidhamster » Mon Jul 17, 2006 10:56 am

I think texture coordinates can be inside the 3DS file. in that case you need to glDisable(GL_TEX_GEN_S) and glDisable(GL_TEX_GEN_T) when you go to render the screen, and then just make sure that the screen has the correct coordinates.

Thats definitely the best way... Object linear could be an issue as you're almost certainly going to be moving the object around.
rabidhamster
Site Admin
 
Posts: 1100
Joined: Fri Mar 21, 2003 12:31 pm
Location: Cambridge, England

Postby andff » Mon Jul 17, 2006 11:10 am

thank you, i'll check it up as soon as possible!
.
.
a quantum leap forward!
andff
 
Posts: 364
Joined: Mon Aug 23, 2004 10:09 pm
Location: hiigara

Postby andff » Mon Aug 21, 2006 11:40 pm

.
.
a quantum leap forward!
andff
 
Posts: 364
Joined: Mon Aug 23, 2004 10:09 pm
Location: hiigara

Postby rabidhamster » Tue Aug 22, 2006 8:00 am

rabidhamster
Site Admin
 
Posts: 1100
Joined: Fri Mar 21, 2003 12:31 pm
Location: Cambridge, England

Postby andff » Tue Aug 22, 2006 10:12 am

Last edited by andff on Tue Aug 22, 2006 10:19 am, edited 1 time in total.
.
.
a quantum leap forward!
andff
 
Posts: 364
Joined: Mon Aug 23, 2004 10:09 pm
Location: hiigara

Postby rabidhamster » Tue Aug 22, 2006 10:18 am

rabidhamster
Site Admin
 
Posts: 1100
Joined: Fri Mar 21, 2003 12:31 pm
Location: Cambridge, England

Postby andff » Tue Aug 22, 2006 10:21 am

.
.
a quantum leap forward!
andff
 
Posts: 364
Joined: Mon Aug 23, 2004 10:09 pm
Location: hiigara


Return to R4 Modules

Who is online

Users browsing this forum: No registered users and 3 guests

cron