Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

12045 Posts in 1593 Topics- by 594 Members - Latest Member: Rooreplarie

25. May 2013, 09:49:46 am
Xith3D CommunityXith3D InternalsDeveloper discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)Render to texture
Pages: [1]
Print
Author Topic: Render to texture  (Read 3731 times)
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« on: 23. November 2006, 10:17:54 pm »

@Amos: You mentioned a week ago, that "render to texture" isn't working and that therefore regular users shouldn't checkout.

Where is this "render to texture"? Maybe I could fix it. But I don't know, where I can find it. Or were you talking about something different and I remember incorrectly?

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #1 on: 24. November 2006, 03:34:29 pm »

@Amos: You mentioned a week ago, that "render to texture" isn't working and that therefore regular users shouldn't checkout.

Where is this "render to texture"? Maybe I could fix it. But I don't know, where I can find it. Or were you talking about something different and I remember incorrectly?
I was talking about everything going "live" (understand : screwed up) in the CalLoaderTest.. Could you have a look at it ? IIRC, I get no textures.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #2 on: 25. November 2006, 12:08:36 am »

I've changed two small things in Cal3dSubmesh and CalCoreMaterial. Please check the diffs. I've also added TODOs, which you can remove after you saw them.

The texture loading part is fixed now. But the scene is still screwed up and I don't think this is because of the TextureLoader part. One error still is, that the texture resource read from the model file is:
Code:
//tex_archer.png
It starts with //, which it shouldn't. Unfortunately the specific file is binary and I couldn't simply remove those slashes. But for some reason the texture is loaded anyway.

After the texture is loaded correctly it is displayed in the scene only for one single frame and then disappears. Could be something in the render code, but if it was, why don't any other textures disappear? So I guess it is in the cal loader. Any idea, what it could be?

I didn't find any other place in the loader code, where a texture is loaded, and you know the loader much better than I do. So could you please check it and tell me, if the error is in the loader?

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #3 on: 25. November 2006, 06:20:01 pm »

After the texture is loaded correctly it is displayed in the scene only for one single frame and then disappears. Could be something in the render code, but if it was, why don't any other textures disappear? So I guess it is in the cal loader. Any idea, what it could be?

I didn't find any other place in the loader code, where a texture is loaded, and you know the loader much better than I do. So could you please check it and tell me, if the error is in the loader?
I feel strongly that it's NOT in the cal loader.. some extensive debugging must be done..
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #4 on: 26. November 2006, 02:01:48 am »

I feel strongly that it's NOT in the cal loader.. some extensive debugging must be done..

I agree.
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #5 on: 26. November 2006, 03:58:19 pm »

I feel strongly that it's NOT in the cal loader.. some extensive debugging must be done..

I agree.
It's even more obvious that it's not in the cal loader cause I use it in my game without any problems so... It's another issue.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #6 on: 26. November 2006, 04:58:07 pm »

It's even more obvious that it's not in the cal loader cause I use it in my game without any problems so... It's another issue.

You're using it in your game? Then it is working at all Huh Maybe the "error" is in the model. Did you test it with the current xith and one of your models?

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #7 on: 26. November 2006, 05:35:33 pm »

It's even more obvious that it's not in the cal loader cause I use it in my game without any problems so... It's another issue.

You're using it in your game? Then it is working at all Huh Maybe the "error" is in the model. Did you test it with the current xith and one of your models?
It is the exact same model Smiley

Which leads me to think something is very wrong with the rendering code...
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #8 on: 26. November 2006, 06:24:20 pm »

It is the exact same model Smiley

Which leads me to think something is very wrong with the rendering code...

Which xith core/tk revision do you use for your game?
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #9 on: 27. November 2006, 05:38:56 pm »

It is the exact same model Smiley

Which leads me to think something is very wrong with the rendering code...

Which xith core/tk revision do you use for your game?
Latest SVN..
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #10 on: 27. November 2006, 05:47:54 pm »

Which xith core/tk revision do you use for your game?
Latest SVN..

Well, then that error cannot be in the render engine. If you're using the loader with the current xith version successfully in your game, the I really believe the error MUST be in the model. Or did I get you wrong Huh

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic