Results 1 to 7 of 7

Thread: How to make 3ds max looking-like grid?

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    7

    How to make 3ds max looking-like grid?

    In 3ds max, you get top,front,left orthogonal view, and the last is perspective view.
    I know how to make a 2D orthogonal grid and a 3D perspective view grid. But how can i make them exist at the same time while in
    top,front,left view only see the 2D grid, and on perspective view
    only see the 3d grid?
    Does that mean I have to need two Scene Manager or HGLRC to do it?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 2008
    Location
    USA
    Posts
    134

    Re: How to make 3ds max looking-like grid?

    In a single OpenGL context, you can use glViewport and glScissor to restrict the portion of the viewport you draw to. Essentially, you draw the geometry four times, each time with a different modelview and/or projection matrix and different viewport/scissor parameters. Check out the man pages for these functions.

  3. #3
    Senior Member Regular Contributor LangFox's Avatar
    Join Date
    Oct 2001
    Location
    Shen Zhen, Guangdong, China
    Posts
    102

    Re: How to make 3ds max looking-like grid?

    Or, you can use geometry shader, render scene to a fbo bound with four layer textures. Each layer presents one of four views.
    Best Regards,
    LangFox


    http://hi.baidu.com/lang_fox

  4. #4
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    7

    Re: How to make 3ds max looking-like grid?

    Quote Originally Posted by todayman
    In a single OpenGL context, you can use glViewport and glScissor to restrict the portion of the viewport you draw to. Essentially, you draw the geometry four times, each time with a different modelview and/or projection matrix and different viewport/scissor parameters. Check out the man pages for these functions.
    Thank you for this reply, good idea, i will try to draw the 3d grid for four times.

  5. #5
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    7

    Re: How to make 3ds max looking-like grid?

    Quote Originally Posted by LangFox
    Or, you can use geometry shader, render scene to a fbo bound with four layer textures. Each layer presents one of four views.
    Thank you for the reply, but first i am not sure what level graphics card is needed to support geometry shader and fbo, should be ok. Second, i don't know if i can do picking on geometry when they are just be rendered to a texture.
    I don't think so.

  6. #6
    Senior Member Regular Contributor LangFox's Avatar
    Join Date
    Oct 2001
    Location
    Shen Zhen, Guangdong, China
    Posts
    102

    Re: How to make 3ds max looking-like grid?

    Picking with render-to-texture is easy and precise, if you support FBO and MRT. For example, write the objec id to an integer texture of FBO, then read back the pixel at mouse position, and you know which object is under mouse.
    Best Regards,
    LangFox


    http://hi.baidu.com/lang_fox

  7. #7
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    7

    Re: How to make 3ds max looking-like grid?

    Quote Originally Posted by LangFox
    Picking with render-to-texture is easy and precise, if you support FBO and MRT. For example, write the objec id to an integer texture of FBO, then read back the pixel at mouse position, and you know which object is under mouse.
    I can understand your meaning,but how can i make the integer picking texture? especially when there are multiple objects overlapped in front of the view?

Similar Threads

  1. Help Coverting Glew Grid to Glad Grid.
    By Josheir in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 02-03-2019, 09:45 AM
  2. How to make a rectangular grid of triangles?
    By cjntifo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-03-2016, 02:02 PM
  3. Trying to make a grid of Squares
    By avpai1992 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-19-2015, 12:52 AM
  4. FreeGLUT make all, make install commands
    By Kaili47 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 07-24-2014, 05:12 AM
  5. hex grid
    By phil67rpg in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-15-2006, 09:19 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