Page 4 of 5

Posted: Wed Dec 12, 2007 6:29 pm
by nedelman
In the OgreMax\OgreMaxViewer\Code directory. Check the viewer documentation for which files you need if you want to integrate the scene loading code into your own project.

Posted: Wed Dec 12, 2007 7:14 pm
by AlphaWolf
Thank you. Btw nice work. Will save a lot of my time!

Posted: Thu Feb 21, 2008 3:55 pm
by lartom
Is it somehow possible to setup an animated material property like alpha from within MAX and then export that and play with ogremaxviewer?

Posted: Thu Feb 21, 2008 5:28 pm
by nedelman
No.

Posted: Thu Mar 13, 2008 4:25 pm
by manowar
Animated material properties are not exported at the moment. Is it a planned feature ? These are common animations, especially alpha, like lartom was asking. Thanks

Posted: Sat Mar 15, 2008 12:55 pm
by yuriythebest
how do I make this material in ogremax?
material bush
{
technique
{
pass
{
lighting off

ambient 1 1 1 1
diffuse 1 1 1 1
specular 0 0 0 0
emissive 0 0 0

scene_blend alpha_blend
depth_write off

texture_unit
{
texture grass.dds
tex_coord_set 0
colour_op modulate
}
}
}

Posted: Sat Mar 15, 2008 8:55 pm
by nedelman
@manowar: It's not a planned feature but I may add it at some point.

@yuriy: I'll assume that you're wondering how to do the blend since the other settings are self explanatory. "scene_blend alpha_blend" is a shortcut for "scene_blend src_alpha one_minus_src_alpha", which can be configured in an OgreMax Pass as two separate settings: "Source Blend" and "Dest blend".

Also, to anyone else who may read this: please stop digging up this old thread. It was originally an announcement for the 1.5 OgreMax release which is now over 4 months old and very outdated.

For any questions or problems you should use the forums at http://www.ogremax.com. It's my site so I actually monitor it, which means you'll get a quick response. If you post anywhere else, you're taking your chances that I'll see your post, which may or may not happen.

Posted: Sun Mar 16, 2008 3:23 pm
by yuriythebest
thanks that did the trick!

Posted: Thu Mar 27, 2008 10:55 am
by xlarrode
Is it possible to make the environment element an option ?
Because we are using a lot of different .scene on our application and so i have to modify by hand all new generated .scene...

Thanks a lot

Posted: Thu Mar 27, 2008 2:10 pm
by nedelman
If you want to skip the environment when loading a scene, just pass in the SKIP_ENVIRONMENT flag when calling OgreMaxScene::Load()

Posted: Thu Mar 27, 2008 2:44 pm
by xabila
Well i don't use your loader, but the OpenMASK one...
So yes could be a cool feature...

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Wed Dec 24, 2008 2:57 pm
by madmarx
Hi Derek,

I can't see you anymore on ogremax.com.
(No more posts, no more releases for one month whereas normally you answer in a day)

Are you fine?

Happy Christmas,

Pierre

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Wed Dec 24, 2008 4:08 pm
by jacmoe
Did it occur to you that he's on holiday? :)

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Wed Dec 31, 2008 4:52 pm
by jacmoe
I just made this *sticky*. :wink:

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Sat Feb 21, 2009 10:18 am
by TnTonly
Well, I just have such a newbie question, since I'm not familiar with the content creator. Well, I need an ogre .mesh file, but when I export from 3dmax, I have so many .mesh files, each for a geometry. There's also a .scene and .material too, and I will have a look at how to use them later. I just want to ask some questions: When I load the .scene file using OgreMaxScene.hpp, will I use the OgreMaxScene the same as the Ogre's SceneNode? And if I want to export to a single mesh just like the Ogre default model, how can I do that?

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Sat Feb 21, 2009 11:45 am
by madmarx
You merge the mesh together : either with meshmagick (after exporting), or with a custom maxscript(before exporting).
Note that "one part -complex meshes" can have easily bad edgelist created, and that means if you use stencil shadow errors in the shadow.

>>>>>When I load the .scene file using OgreMaxScene.hpp, will I use the OgreMaxScene the same as the Ogre's SceneNode?
Yes, that is the idea. Indeed, I just attach the created scene node to the ogre::scenenode that I want to display the content of the .scene.

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Sat Feb 21, 2009 6:23 pm
by TnTonly
Thank you, I will try meshmagick later. Currently I'm trying to load the scene file, as you said.
Yes, that is the idea. Indeed, I just attach the created scene node to the ogre::scenenode that I want to display the content of the .scene.
But I got the following error
Error 1 error C2664: 'Ogre::SceneNode::attachObject' : cannot convert parameter 1 from 'OgreMax::OgreMaxScene *' to 'Ogre::MovableObject *'
Hey, don't look at me like that, I'm just new to Ogre and OgreMax T__T

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Sun Feb 22, 2009 1:09 pm
by madmarx
Hey, don't look at me like that, I'm just new to Ogre and OgreMax T__T
This made my day :lol: .

Ok you need to call 2 function when loading.

Ogremax_Scene = new OgreMax::OgreMaxScene();
Ogremax_Scene->Load("myfirstscene.scene",mWindow);

But if you look at the doc, you see that you can specify a SceneNode as a parameter.

So
0/(add the resource into the resourcemanager if needed)
1/ create your SceneNode
2/ load with the scenenode as a param.

Next time, check the forums (ogre or ogremax forums) before asking. :wink:

Code: Select all

/** 
         * Loads a scene from the specified file. 
         * @param fileNameOrContent [in] - The name of the file to load. This file name can contain a directory path
         * or be a base name that exists within Ogre's resource manager. If the file contains a directory path, 
         * the directory will be added to Ogre's resource manager as a resource location and the directory will be 
         * set as a base resource location. If the file doesn't contain a directory path, and assuming 
         * If the FILE_NAME_CONTAINS_CONTENT flag is specified as a load option, this parameter is treated
         * as though it is the scene file itself. That is, the string contains the scene file XML.
         * SetBaseResourceLocation() hasn't already been called elsewhere, no resource location configuration 
         * will occur during the load
         * @param renderWindow [in] - The render window in use
         * @param loadOptions [in] - Options used to specify the loading behavior. Optional.
         * @param sceneManager [in] - The scene manager into which the scene is loaded. Optional. If not specified, 
         * the scene manager specified in the scene file will be used to create a new scene manager
         * @param rootNode [in] - Root node under which all loaded scene nodes will be created. If specified,
         * this should be a scene node in the specified scene manager
         * @param callback [in] - Pointer to a callback object. Optional.
         * @param defaultResourceGroupName [in] - The resource group name that is used by default when
         * creating new resources. Optional.
         */
        void Load
            (
            const Ogre::String& fileNameOrContent, 
            Ogre::RenderWindow* renderWindow,
            LoadOptions loadOptions = NO_OPTIONS,
            Ogre::SceneManager* sceneManager = 0, 
            Ogre::SceneNode* rootNode = 0,
            OgreMaxSceneCallback* callback = 0,
            const Ogre::String& defaultResourceGroupName = Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME
            );


Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Sun Feb 22, 2009 2:21 pm
by TnTonly
Thank you so much, that works!

Actually I've come to ogremax forum but it seems to be too messy for me to find the information. Here comes your help! :wink:

Is it darker than it's in the 3dmax? :-?

Re: compared to ofusion?

Posted: Fri Apr 03, 2009 7:30 pm
by budong4585
mklann wrote:first of all: great work!

Let me try to understand that: short of the real-time viewport ogremax offers more or less the same as oFusion, and ogremax is open source, so everybody interested (and capable) could contribute to the development?

Have you ever considered adding a real-time viewport?

I think an open-source community-developed 3ds-exporter is great for the ogre community - so I'd love to see this grow.

Best,

Markus
yeah your that was i actually using right now....


_________________
My ka-blogs site | urban net zone | doctor is out | my little blogs

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Fri Apr 10, 2009 1:59 am
by evilshadow
Can't find the "OgreMaxViewer.sln" file:

Hi all, I wanted to compile the OgreMaxViewer project, but I couldn't find the "OgreMaxViewer.sln" file in the downloaded source from http://www.ogremax.com/OgreMax-1.6.23.rar...
But I could get the "OgreMaxWinViewer.sln" in the \OgreMax1.6.23\OgreMaxWinViewer\Projects\VisualStudio folder...
So, where can i get the "OgreMaxViewer.sln" file to build the project? Thanks so much...^_^

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Sat Apr 11, 2009 11:32 pm
by Evak
Ogremax is for the most part comparable to ofusion CE and in some ways better, both do some things differently and Ofusion Pro has a few more features. One being that it converts .fx shader files loaded into 3dsmax DX material into ogre shader materials with the click of a button as well as realtime shaderFX shader conversion in the Ogre viewport. The OSM scene format is more extensive and comes in Binary and XML formats, and also has a serializer for saving OSM scene files.

I think Ogremax is an excellent choice if your on a budget. Ofusion has quite a high price but is generally worth it. Ogremax really can't be beat being free and complete with source, there isn't a competing exporter available for non commercial use.

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Tue Jun 02, 2009 5:25 pm
by kweinberg
I am unable to access http://www.ogremax.com for several days now. Is anyone else able to access the website and download the OgreMax Exporter solution?

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Tue Jun 02, 2009 5:30 pm
by jacmoe
Site is up for me.

Re: OgreMax Exporter 1.5 - With Material Editor/Viewer

Posted: Tue Jul 07, 2009 8:12 am
by nedelman
Yes, the site is most definitely up.

Also, can the admins please lock this thread or at least un-sticky it? It's a little weird seeing any kind of discussion under OgreMax 1.5. That release is ancient history - it came out nearly 2 years ago.