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 9-Oct-2011 05:08:28

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

shader works with win7 64bit, but not with xp 32 bit

url at issue:
http://ifam.net/openspace/bettershader2/web/index.html

the normal map shader in this scene works on my laptop (i3 win7 64bit 4gwith intel gma 3000 directx 10.1) but not with my p4 xp 32bit desktop with nvidia geforce fx 5500 (directx 9.0c) maybe this is a directx issue?

i have double checked the paths in the .material and .program files and i haven't found any path issues to prevent the shader from showing up on my winxp 32 desktop.

if I use lexiview on my p4 to view the .mesh and dependent files. lexiview uses an older version of ogre, perhaps it's an ogre issue?

colleauges please let me know what hardware/os you are using and whether you are seeing the normal map show up:

screenshot

-h

Offline

#2 9-Oct-2011 14:56:57

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

i think what i'll do is try to use one of the shaders from the shader example scene, maybe it's some mysterious bug in the program/cg/material files i'm using.

Offline

#3 9-Oct-2011 20:21:44

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

Re: shader works with win7 64bit, but not with xp 32 bit

try with the general.program in example scene

Offline

#4 10-Oct-2011 04:32:29

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

smile fixed; i used shader material 07 from the shaders example, the one that does the bare minimum to render diffuse/bump
my winxp 32  p iv is happy now, but alas i think it is becoming to old to handle openspace, but i can still author some assets with it so it doesn't end up in a landfill, maybe i'll try to upgrade the gpu one more time.

http://ifam.net/openspace/shaderworkswithxp/web/

Offline

#5 11-Oct-2011 16:25:26

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

must have been a path problem with my own shader that was not working, after some editing, it works, showing that openspace can handle one shader that is not in the shaders example. i also removed the .program file as you can put all the shader delclarations in the .material file, one less thing to go wrong.

sad ack, now the shader works on xp but not on win7; the monster is blue on win7 but shows up fine on xp....once i post shaders that behave differently on different machines i'll have to script the html with sniffers.

Last edited by hebdemnobad (11-Oct-2011 17:14:46)

Offline

#6 11-Oct-2011 18:07:07

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

Re: shader works with win7 64bit, but not with xp 32 bit

hmm really strange

the xp machine is the pc on witch you developed the shader ?

maybe again a bad path or the shader is not found in the material (don't remember how I coded this)
try with a .program file and or define several shader profiles

some new graphic card are no more compatible with old shader profiles, so define the minimum profile and add some more recent

Offline

#7 11-Oct-2011 18:10:27

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

Re: shader works with win7 64bit, but not with xp 32 bit

also the intel GMA is a big ch...t, this intel cards do not support all vertex shader 2.0, some time the driver tell it can manage it but some important feature are not present, so it crash without any prompt ....

Offline

#8 11-Oct-2011 18:15:34

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

arkeon what do you see here:

http://ifam.net/openspace/oldgreatraceshader/web/

i will recheck the paths, and take the shader declarations out of the .material file and put them back in a .program file. the gpu on my xp machine is pretty old, a geforce 5500; is supports shader model 2.0, wherease my laptop gma supports up to shader model 4.0

eesh, as we say here.

-h

Offline

#9 11-Oct-2011 18:22:10

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

Re: shader works with win7 64bit, but not with xp 32 bit

see a blue monster ...

i checked your material file, I saw nothing strange ...

Offline

#10 11-Oct-2011 18:36:51

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

Re: shader works with win7 64bit, but not with xp 32 bit

ok saw something

the shader can not start because of th nm.png combinedUVW
OS3D need real files names (I could manage this anyway)
replace by
cubic_texture oldgreatraceshader/nm_fr.png oldgreatraceshader/nm_fr.png oldgreatraceshader/nm_bk.png oldgreatraceshader/nm_lf.png oldgreatraceshader/nm_rt.png oldgreatraceshader/nm_up.png oldgreatraceshader/nm_dn.png

it works ^^

Offline

#11 11-Oct-2011 22:19:59

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

arkeon wrote:

ok saw something

the shader can not start because of th nm.png combinedUVW
OS3D need real files names (I could manage this anyway)
replace by
cubic_texture oldgreatraceshader/nm_fr.png oldgreatraceshader/nm_fr.png oldgreatraceshader/nm_bk.png oldgreatraceshader/nm_lf.png oldgreatraceshader/nm_rt.png oldgreatraceshader/nm_up.png oldgreatraceshader/nm_dn.png

it works ^^

great! perhaps sometimes os3d cannot add the cube map texture...I will edit the text of the .xos and see what happens.

Offline

#12 11-Oct-2011 22:29:01

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

Re: shader works with win7 64bit, but not with xp 32 bit

I simply do not manage this case in the script detection hmm
Don't forget the redmine.scolring.org for feature requests smile

Offline

#13 11-Oct-2011 23:28:13

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

arkeon wrote:

I simply do not manage this case in the script detection hmm
Don't forget the redmine.scolring.org for feature requests smile

How do I login to redmine?

Offline

#14 11-Oct-2011 23:37:37

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: shader works with win7 64bit, but not with xp 32 bit

You must register before write a feature :
http://redmine.scolring.org/account/register

Next, go to "Projects" > "Openspace3d" and post ! Or click directly on this link : http://redmine.scolring.org/projects/op … issues/new
Don't forget :
* be clear,
* be precise

Enjoy !

Offline

#15 12-Oct-2011 00:25:32

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

arkeon wrote:

I simply do not manage this case in the script detection hmm
Don't forget the redmine.scolring.org for feature requests smile

I'lll just declare all the filenames in the .material script itself then as you did. Thanks for the link to register with redmine, I did that and assigned this problem to 'low priority' since it's something that a nonprogrammer like me can work around.

reposted scene with the longform cubic texture declaration to:
http://ifam.net/openspace/oldgreatraceshader2/web/

but now in the openspace editor I can't change the ambient color to black! The darkest I can get the ambient color is gray...maybe I'm missing something somewhere.

Perhaps it's just my winxp machine getting older, or perhaps it needs a restart.  too late to troubleshoot that today.
-h

Last edited by hebdemnobad (12-Oct-2011 02:07:47)

Offline

#16 12-Oct-2011 08:38:19

Nodrev
Scol Language & OS3D developer
From: Nantes, France
Registered: 29-Dec-2009
Posts: 197

Re: shader works with win7 64bit, but not with xp 32 bit

Cool, but two point concerning your modeling:
I assume that you mirrored an half of the model, cause there's a little overlap at the center of it...
And you may have to add some vertex and remap your uv mapping for the torso part, to limit the stretching of the texture.

Last edited by Nodrev (12-Oct-2011 08:38:46)

Offline

#17 12-Oct-2011 09:42:40

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

Re: shader works with win7 64bit, but not with xp 32 bit

what do you mean "you can not change the ambient" do you mean this didn't affect the 3d model or you can't change the ambient value in the interface ?

Offline

#18 12-Oct-2011 13:04:04

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

Nodrev wrote:

Cool, but two point concerning your modeling:
I assume that you mirrored an half of the model, cause there's a little overlap at the center of it...
And you may have to add some vertex and remap your uv mapping for the torso part, to limit the stretching of the texture.

I'm not worried about the torso underside since youaren't meant to see that in a scene but about the overlap, yes, I'll fix that with my modeler. I just have to track down that file, which is an old one (which I updated with the ogre mesh upgrader.)

Last edited by hebdemnobad (12-Oct-2011 13:45:39)

Offline

#19 12-Oct-2011 13:05:10

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

arkeon wrote:

what do you mean "you can not change the ambient" do you mean this didn't affect the 3d model or you can't change the ambient value in the interface ?

When I set the ambient color by right clicking 'scene' in the scene tree, setting the color to black does not make the ambient color in the scene turn to black.

Hmm. I authored the scene on my win7 machine, and the black ambient color looks black.

Last edited by hebdemnobad (12-Oct-2011 14:17:55)

Offline

#20 12-Oct-2011 14:30:24

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

smile ok this version of the shader works on my gma 3000 (win7 laptop) and geforce 5500 (winxp desktop). fwiw it is a two pass shader:

http://ifam.net/openspace/oldgreatraceshader3/web/

for some reason authoring the scene on the win7 machine  allows the ambient color for the scene to be black.

btw this shows that my gma 3000 can at least handle a two pass shader, fwiw.

Last edited by hebdemnobad (12-Oct-2011 15:29:44)

Offline

#21 12-Oct-2011 23:24:49

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

Re: shader works with win7 64bit, but not with xp 32 bit

doh! no luck on my nvidia 510gt the shader don't seem's to work (or again a material problem)

really strange about the ambient, maybe a shader interpretation issue on this graphic card (and again) smile

Offline

#22 13-Oct-2011 01:31:58

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

arkeon wrote:

doh! no luck on my nvidia 510gt the shader don't seem's to work (or again a material problem)

really strange about the ambient, maybe a shader interpretation issue on this graphic card (and again) smile

all this shader stuff is a bit hard to predict, different os', different cpu's and gpu's. i guess that's why ogre allows for fallback techinques, so i'll put one in this monster's material.

arkeon did you mean 510gt or 5100gt?

Last edited by hebdemnobad (13-Oct-2011 21:38:34)

Offline

#23 13-Oct-2011 21:22:41

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

arkeon does the shader work in my showcase scene?http://ifam.net/openspace/xpfriendlymon … index.html

Offline

#24 14-Oct-2011 00:09:16

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

Re: shader works with win7 64bit, but not with xp 32 bit

nope ... still the same hmm
does all the paths good in material ?

Offline

#25 14-Oct-2011 01:28:36

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: shader works with win7 64bit, but not with xp 32 bit

arkeon wrote:

nope ... still the same hmm
does all the paths good in material ?

i think i'll post a .zip of the project and all the subfolders for you.

-h

Offline

Board footer

Powered by FluxBB