Jump to content


Photo

Ogre Multitexturing Geforce4 Mx


  • Please log in to reply
6 replies to this topic

#1 Beetle

Beetle

    Programming Department

  • Xenocide Inactive
  • 350 posts

Posted 14 September 2005 - 08:43 AM

Hi

I was curently trying to do something with that great Laser pistol mesh, but as always have problems :P. My card (GeForce 4 mx) is not supprting multitextures:

16:27:28: Supported WGL extensions: WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pbuffer WGL_ARB_pixel_format WGL_ARB_render_texture WGL_EXT_extensions_string WGL_EXT_swap_control WGL_NV_render_texture_rectangle
As you see there is no GL_ARB_multitexture here :sly:

Since i'm going to change my GF4 soon, it's not big problem to me, but are we going to support this card in our final product?? I'm think that we should. So maybe i will just add that meesh with only one texture (Diffuse) attached to it??

One more, i already added techniques(quite dirty in fact :P ) to support cards that don't have vertex shaders in billboards and icons objects. They was used to hide icons from the globe, currently i have just added new technique wich is just ignoring that, but i think it should be done programmly from CPU side (they will be not so many icons on the globe :P )

Greetings,
Beetle

Edited by Beetle, 14 September 2005 - 08:43 AM.

Posted Image

#2 rincewind

rincewind

    Programming Department

  • Xenocide Programming Department
  • 541 posts

Posted 14 September 2005 - 09:16 AM

As you can see, I'm not dead, yet... Beginning of October, I'll be back for good. Now jsut two short comments:

Geforce 4 MX supports multitexture (everything since TNT does). What you pasted are WGL-extensions not GL-extensions. You should find it there.

As to the vertex shader issue: Recent drivers just implement the vertex shaders on the CPU which for the couple of vertexes we use for the billboards doesn't have an impact at all. And they should be heavily optimised using SSE, etc. So no need for a different path.

Rincewind
Posted Image

I love boost!!! The next best thing since the invention of C++.

#3 Beetle

Beetle

    Programming Department

  • Xenocide Inactive
  • 350 posts

Posted 14 September 2005 - 09:28 AM

Great to know that you are here :)

If my card support multitextures then why they are not working ??? I can download newest drivers maybe something changed :P

edit:
Ok i have newest drivers now :)
It seems that it helped with that vertex shader :) :master: :master: :master: :master: :master: :master: :master: (still not working under directX, but i don't using directX :P )

Going back to multitextures. From ogre logs everything looks ok, but no effects. I will take a closer look how to use that material scripts :)

Edited by Beetle, 14 September 2005 - 09:59 AM.

Posted Image

#4 Beetle

Beetle

    Programming Department

  • Xenocide Inactive
  • 350 posts

Posted 15 September 2005 - 06:07 AM

Ok it's working now :)
Posted Image

#5 red knight

red knight

    Xenocide Project Leader

  • Xenocide Inactive
  • 3,310 posts

Posted 15 September 2005 - 07:37 AM

Out of curiosity, how did you handled it?

BTW if it was something regarding the material script or some code pattern using Ogre, document it in the Wiki.

Greetings
Red Knight
Sourceforge Nick: flois - Federico Andres Lois
Visit my blog at: flois.blogspot.com

Posted Image

Pookie cover me, I am going in.

#6 Beetle

Beetle

    Programming Department

  • Xenocide Inactive
  • 350 posts

Posted 15 September 2005 - 07:50 AM

Hmm my errors :)
first of all old drivers (something strange becouse they wasn't so old :P, but was older then Ogre and that was enough :) (without them ogre was telling (in log file) that he can't find methods to draw objects, ore soemthing like that)

Second material scirpt (i was trying to multiply 2 textures and didn't even recoginzed that one of them is almost everywhere zero :P ) Next time i will try to think more before posting here :)

btw: i'm still fighting with bump mapping, but already uploaded textures and model to SVN (and created simple material file) look at screen shot.

Now i'm see that ogre material script is very powerfull tool, only have to know how to use it :)
Posted Image

#7 Beetle

Beetle

    Programming Department

  • Xenocide Inactive
  • 350 posts

Posted 15 September 2005 - 08:09 AM

Hmm my errors :)
first of all old drivers (something strange becouse they wasn't so old :P, but was older then Ogre and that was enough :) (without them ogre was telling (in log file) that he can't find methods to draw objects, ore soemthing like that)

Second material scirpt (i was trying to multiply 2 textures and didn't even recoginzed that one of them is almost everywhere zero :P ) Next time i will try to think more before posting here :)

btw: i'm still fighting with bump mapping, but already uploaded textures and model to SVN (and created simple material file) look at screen shot.

Now i'm see that ogre material script is very powerfull tool, only have to know how to use it :)

edit: What happened? suddenly second image apeard ??

Attached Files


Edited by Beetle, 15 September 2005 - 08:11 AM.

Posted Image