Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 8-Jul-2011 18:36:54

gius
Member
Registered: 5-Jun-2011
Posts: 53

add mesh

From Demos Ogre 1.7.0 I'd like to add my game:
Penguin.

1) I created a folder "Penguin" inside  Partition_LocalUsr
2) I created inside folder "Penguin" the folders: textures, mesh and material. Inside I put in:
folder texture -> pensguin.jpg
folder material -> Pensguin.material
folder mesh -> penguin.mesh and penguing.skeleton
3) I followed the video http://www.youtube.com/watch?v=D63n1uozWrU
but I can not load the textures, I upload the file penguin.material but did not load the texture file in object,

where am I wrong?

This my demo file
http://kktc.jimdo.com/


thanks

Offline

#2 8-Jul-2011 19:17:26

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: add mesh

Hi,

when importing mesh it ask you for the resources directories, add the material and texture directories if they are not detected.
when material script is detected and imported, it will as you to rewrite the file with the good path if needed, you must answer yes.

Offline

#3 8-Jul-2011 19:35:26

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: add mesh

Hi arkeon
not work, I tried, the file penguin.jpg is loaded  into  Resources Group, but the penguin appears in the live without texture,

Why?

thanks

Offline

#4 8-Jul-2011 19:38:03

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: add mesh

You're right, it seems that the material file is not correct or the file don't have correct break line character.

Offline

#5 8-Jul-2011 19:41:52

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: add mesh

I can fix this file to see the texture?

thanks arkeon

Offline

#6 8-Jul-2011 20:07:22

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: add mesh

that's it.

just open the material file in notepad and resave it

Offline

#7 8-Jul-2011 20:21:30

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: add mesh

not work,

I found this

material Penguin
{
    technique
    {
        pass
        {
            texture_unit
            {
                texture penguin.jpg
            }
        }
    }
}

but it seems to me that all is well.... :-(

There are sites where to download free animations .mesh?

Offline

#8 8-Jul-2011 20:24:17

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: add mesh

it works for me.
try to remove spaces and tabulations before lines.
or simply rewrite the file without copy/past in a new file.

I don't know about ogre resources website.

Offline

#9 8-Jul-2011 20:36:36

gius
Member
Registered: 5-Jun-2011
Posts: 53

Re: add mesh

yes, now work!


I think that was missing this line complete:

texture Penguin/texture/penguin.jpg


thanks Arkeon !

good night!

Offline

Board footer

Powered by FluxBB