2d to 3d mapping - Graphics
This is a discussion on 2d to 3d mapping - Graphics ; hi,
i have a window displaying 3d diagram its infact a cosmo3d file(.csb)
and another window displaying 2d diagram using opengl for rendering
and now have to map 2d window to 3d window particularly to some part
of the window ...
-
2d to 3d mapping
hi,
i have a window displaying 3d diagram its infact a cosmo3d file(.csb)
and another window displaying 2d diagram using opengl for rendering
and now have to map 2d window to 3d window particularly to some part
of the window displaying 3d diagram...can i do this..
if so please tell me the way to achieve this....
-tejaswini
-
Re: 2d to 3d mapping
On Dec 11, 11:31 pm, teju <tejaswini_ra...@yahoo.co.in> wrote:
> hi,
>
> i have a window displaying 3d diagram its infact a cosmo3d file(.csb)
> and another window displaying 2d diagram using opengl for rendering
> and now have to map 2d window to 3d window particularly to some part
> of the window displaying 3d diagram...can i do this..
>
> if so please tell me the way to achieve this....
>
The exact solution will depend on your platform and how you want to
display in the 3d window. Some things to consider:
- are you wanting the 2d image to be in front of the scene in the 3d
image or part of it?
- is the 2d image a bitmap or vector drawing?
Some approaches would be:
- to convert the 2d view to a bitmap and use it as a texture in the
3d scene
- draw the 2d image directly as part of the 3d scene, adjusting the
matrix accordingly
Also is all this being done in OpenGL?
Andre
-
Re: 2d to 3d mapping
On Dec 14, 2:04 am, Andre-John Mas <andrejohn....@gmail.com> wrote:
> On Dec 11, 11:31 pm, teju <tejaswini_ra...@yahoo.co.in> wrote:
>
> > hi,
>
> > i have a window displaying3ddiagram its infact a cosmo3d file(.csb)
> > and another window displaying2ddiagram using opengl for rendering
> > and now have to map2dwindow to3dwindow particularly to some part
> > of the window displaying3ddiagram...can i do this..
>
> > if so please tell me the way to achieve this....
>
> The exact solution will depend on your platform and how you want to
> display in the3dwindow. Some things to consider:
> - are you wanting the2dimage to be in front of the scene in the3d
> image or part of it?
> - is the2dimage a bitmap or vector drawing?
>
> Some approaches would be:
> - to convert the2dview to a bitmap and use it as a texture in the3dscene
> - draw the2dimage directly as part of the3dscene, adjusting the
> matrix accordingly
>
> Also is all this being done in OpenGL?
>
> Andre
2d is not a bitmap image its dynamically reading data and updating
itself and its drawing in the window and uses opengl functions to
draw...i want this window on the top of an object in the
scenegraph...but scenegraph is using cosmo3d library and i cant write
anything as part of 3d scene using opengl functions it is using its
own cosmo3d functions to draw...
one thing is 2d is not static image but dynamically drawing on
window...
adjusting matrix i dint get this can u brief me more?
waiting 4 ur reply,
thanx
-
Re: 2d to 3d mapping
On Dec 14, 12:03 am, teju <tejaswini_ra...@yahoo.co.in> wrote:
> On Dec 14, 2:04 am, Andre-John Mas <andrejohn....@gmail.com> wrote:
>
>
>
> > On Dec 11, 11:31 pm, teju <tejaswini_ra...@yahoo.co.in> wrote:
>
> > > hi,
>
> > > i have a window displaying3ddiagram its infact a cosmo3d file(.csb)
> > > and another window displaying2ddiagram using opengl for rendering
> > > and now have to map2dwindow to3dwindow particularly to some part
> > > of the window displaying3ddiagram...can i do this..
>
> > > if so please tell me the way to achieve this....
>
> > The exact solution will depend on your platform and how you want to
> > display in the3dwindow. Some things to consider:
> > - are you wanting the2dimage to be in front of the scene in the3d
> > image or part of it?
> > - is the2dimage a bitmap or vector drawing?
>
> > Some approaches would be:
> > - to convert the2dview to a bitmap and use it as a texture in the3dscene
> > - draw the2dimage directly as part of the3dscene, adjusting the
> > matrix accordingly
>
> > Also is all this being done in OpenGL?
>
> > Andre
>
> 2d is not a bitmap image its dynamically reading data and updating
> itself and its drawing in the window and uses opengl functions to
> draw...i want this window on the top of an object in the
> scenegraph...but scenegraph is using cosmo3d library and i cant write
> anything as part of 3d scene using opengl functions it is using its
> own cosmo3d functions to draw...
>
> one thing is 2d is not static image but dynamically drawing on
> window...
>
> adjusting matrix i dint get this can u brief me more?
>
I just learnt how to do it a few weeks ago:
http://www.gamedev.net/community/for...opic_id=473268
Andre
-
Re: 2d to 3d mapping
On Dec 15, 1:46 am, Andre-John Mas <andrejohn....@gmail.com> wrote:
> On Dec 14, 12:03 am, teju <tejaswini_ra...@yahoo.co.in> wrote:
>
>
>
>
>
> > On Dec 14, 2:04 am, Andre-John Mas <andrejohn....@gmail.com> wrote:
>
> > > On Dec 11, 11:31 pm, teju <tejaswini_ra...@yahoo.co.in> wrote:
>
> > > > hi,
>
> > > > i have a window displaying3ddiagram its infact a cosmo3d file(.csb)
> > > > and another window displaying2ddiagram using opengl for rendering
> > > > and now have to map2dwindow to3dwindow particularly to some part
> > > > of the window displaying3ddiagram...can i do this..
>
> > > > if so please tell me the way to achieve this....
>
> > > The exact solution will depend on your platform and how you want to
> > > display in the3dwindow. Some things to consider:
> > > - are you wanting the2dimage to be in front of the scene in the3d
> > > image or part of it?
> > > - is the2dimage a bitmap or vector drawing?
>
> > > Some approaches would be:
> > > - to convert the2dview to a bitmap and use it as a texture in the3dscene
> > > - draw the2dimage directly as part of the3dscene, adjusting the
> > > matrix accordingly
>
> > > Also is all this being done in OpenGL?
>
> > > Andre
>
> >2dis not a bitmap image its dynamically reading data and updating
> > itself and its drawing in the window and uses opengl functions to
> > draw...i want this window on the top of an object in the
> > scenegraph...but scenegraph is using cosmo3d library and i cant write
> > anything as part of3dscene using opengl functions it is using its
> > own cosmo3d functions to draw...
>
> > one thing is2dis not static image but dynamically drawing on
> > window...
>
> > adjusting matrix i dint get this can u brief me more?
>
> I just learnt how to do it a few weeks ago:
>
> http://www.gamedev.net/community/for...opic_id=473268
>
> Andre- Hide quoted text -
>
> - Show quoted text -
thanx, will try to do b...but still am a newbie working on opengl and
scenegraph hope this is not out of my scope...will get back to u
Similar Threads
-
By Application Development in forum Editors
Replies: 10
Last Post: 06-11-2007, 02:36 PM
-
By Application Development in forum Graphics
Replies: 3
Last Post: 10-12-2006, 05:29 PM
-
By Application Development in forum Editors
Replies: 5
Last Post: 08-17-2006, 05:34 AM
-
By Application Development in forum Editors
Replies: 6
Last Post: 04-20-2006, 04:16 AM
-
By Application Development in forum ASM x86 ASM 370
Replies: 0
Last Post: 06-23-2003, 10:30 AM