I'm looking for a method to make a preview window. I have a "add entity" dialog that uses name and meshfile to create an entity. Now I want to display a preview of the meshfile in a small window next to the meshlist without changing the scene in the mainwindow.
I searched the forums and I found that I should use a swapchains method and a RenderTargetListener.
But I can't figure out how it works. Are there any usefull examples? Is this method cross platform?
Thanks
Mr. Turner
Preview Window
-
- Halfling
- Posts: 58
- Joined: Thu Feb 10, 2005 10:35 pm
- Location: Arcachon, France
-
- Halfling
- Posts: 88
- Joined: Sun Sep 05, 2004 7:01 pm
- Location: Belgium
-
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
If it's just a preview window - it would be better to just spawn a new Ogre, since it does not need to be synchronized with the "main" Ogre. ?



/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
- Halfling
- Posts: 88
- Joined: Sun Sep 05, 2004 7:01 pm
- Location: Belgium
-
- OGRE Retired Moderator
- Posts: 20570
- Joined: Thu Jan 22, 2004 10:13 am
- Location: Denmark
- x 179
Well, of course this is a singleton ... one way to avoid it, is to spawn another program.
A command-line mesh-viewer ?

A command-line mesh-viewer ?

/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
-
- Halfling
- Posts: 88
- Joined: Sun Sep 05, 2004 7:01 pm
- Location: Belgium
Demo_Gui works differently. It hides the overlay, renders, unhides it. It gave me an idea though.
What do you guys think about this:
Hide the whole scene
Show the preview Node
Create texture of scene and send it to the previewwindow
Show the whole scene
continue rendering
Is this doable (performance related)?
Is this what is supposed to be done with RenderTargetListeners?
Mr. Turner
What do you guys think about this:
Hide the whole scene
Show the preview Node
Create texture of scene and send it to the previewwindow
Show the whole scene
continue rendering
Is this doable (performance related)?
Is this what is supposed to be done with RenderTargetListeners?
Mr. Turner
-
- Kobold
- Posts: 35
- Joined: Wed Mar 10, 2004 12:10 pm
- Location: Bielefeld, Germany
-
- Greenskin
- Posts: 120
- Joined: Thu Jan 23, 2003 8:40 am