Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: 2D texture or 3D texture

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2006
    Posts
    8

    2D texture or 3D texture

    If I want to Texture a complex 3D model,which method should I choose?
    How to texture a model only once,need not texture a model multiple times for diffeent parts of it?

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: 2D texture or 3D texture

    3D texture takes a lot of place and not really usefull if you only need to texture the surface of the model (instead of 'volume rendering).
    Wrapping a 2D texture around a complex model is difficult, but a range of sulutions exist depending of your needs :
    Use a real modeler to generate the needed custom texture coordinates :
    http://www.blender3d.org/cms/UV_Unwrapping.363.0.html

    Some tools allow to directly paint on the model : http://www.cgray.com.cn/upload/2005_...1322299495.jpg
    http://www.pixologic.com/zbrush/products/products.html

    In simple cases, try to fit a simple texture projection on the model (plane, cylindre, shpere, cube), unwrap it, and draw the texture on the unwrapped mesh. If you can't unwrap, you are left to draw texture, map it to check it is ok, and change texture accordingly, until you reach a good-enough solution.

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2006
    Posts
    8

    Re: 2D texture or 3D texture

    I think my expression is not correct.I mean I need to write a program to texture 3D models,the calculateing of texture coordinates is difficult,is there any good arithmetic I can use or consult?

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: 2D texture or 3D texture

    Search inside blender source

    Anyway I still don't understand if you need texcoord generation (to map a texture on a mesh) or inversion (to find out where is a given 3D point on the 2D texture).
    Generation for simple cases (plane, sphere, you may easily imagine for a cylinder) :
    http://www.opengl.org/documentation/...gl/texgen.html
    For inversion, I guess you need to invert the texture matrix.
    http://www.rush3d.com/reference/open...chapter09.html

  5. #5
    Junior Member Newbie
    Join Date
    Sep 2006
    Posts
    8

    Re: 2D texture or 3D texture

    The model I want to texture is not regular,like strata model.Its surface is closed,and I need to texture the closed surface.

  6. #6
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: 2D texture or 3D texture

    for most models u will need to define the texture coordinates yourself inside the modelling program which is usually a timeconsuming task

    there are some magic functions/algorithms that will automatically generate texcoords by either attempting to unwrap a model or another method, but these will give worse results than hand generated texturecoordinates thus u have to tweek these

  7. #7
    Junior Member Newbie
    Join Date
    Sep 2006
    Posts
    8

    Re: 2D texture or 3D texture

    Are there any better functions/algorithms that automatically generate texcoords can be used in my program?Because I think it is hard for me to excogitate it.

  8. #8
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: 2D texture or 3D texture

    Your problem is under-constrained

  9. #9
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: 2D texture or 3D texture

    easy on u two, some of us have vocabularies of 7 year olds

    Are there any better functions/algorithms that automatically generate texcoords can be used in my program?
    look in your 3d modelling program, there will be a menu with UV texture coordinate generation, play around with that

  10. #10
    Junior Member Newbie
    Join Date
    Sep 2006
    Posts
    8

    Re: 2D texture or 3D texture

    Are there any better functions/algorithms that automatically generate texcoords can be used by my program?Is it right now?

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 12-26-2014, 04:57 PM
  2. Replies: 1
    Last Post: 03-10-2014, 12:51 PM
  3. Replies: 0
    Last Post: 01-09-2005, 06:01 PM
  4. Replies: 0
    Last Post: 01-09-2005, 05:53 PM
  5. Replies: 2
    Last Post: 09-27-2004, 05:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean