0 registered members (),
744
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
recreating rendertargets and view-stages
#442438
06/22/14 15:51
06/22/14 15:51
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
Okay, sorry for digging this one up again and sorry for posting in here but I still didn't manage to solve my problem that I've posted here. hey there,
I'm having trouble removing and recreating all the VIEWs and BMAPs in my postprocessing chain. (needed when changing the resolution or quality settings, for example)
Can anyone show me how to properly do this? what I'm doing at the moment is this: I remove all views stages with ptr_remove, release the video memory for every rendertarget with bmap_purge (not sure if this is needed) and remove the bmaps with ptr_remove. After that I recreate everything. Doing this I can't see a change in the used memory (debug panel) but after recreating the rendering pipeline for the ~13th time I get this error: Error E2005: Can't create DirectX texture unnamedSo what exactly am I doing wrong here kind regards, Kartoffel
POTATO-MAN saves the day! - Random
|
|
|
Re: recreating rendertargets and view-stages
[Re: jcl]
#442486
06/23/14 15:27
06/23/14 15:27
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
OP
Expert
|
OP
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
Thanks for your answer! It has the same effect on different systems. However, I tried to recreate this problem with a simple example but the error didn't appear.
...so maybe something else is causing this. I'll have a closer look and will post it here when I know more.
POTATO-MAN saves the day! - Random
|
|
|
Re: recreating rendertargets and view-stages
[Re: jcl]
#445646
09/18/14 17:41
09/18/14 17:41
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
I just wanted to write that it is not reproducible but in fact it is: It is not related to said or any video played, I've commented/ deactivated that code for now. The issue sadly seems to be a little more complex: There is a level in my game which has caused problems for quite some time now, that is some entities do not get created successfully it seems, they are invisible and passable (but they are there, for example tested via "while(1) draw_line3d(...)" in those entities' actions). It only happens when you enter one/ some other levels prior to that. I've thought it could be related to a damaged file but the level only uses models and textures which can be found in many other levels as well. Then I wrote a function which writes a level protocol which sadly gives erroneous output because of engine_gettaskinfo, as discussed here: http://www.opserver.de/ubb7/ubbthreads.p...true#Post439890 (Btw. the following thread and problem probably is related: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=445593#Post445593 ) Finally, I'm starting to think that the following issue could somehow and magically have an effect on the faulty entity creation, too: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=439415#Post439415
When I enter said level and at least one entity is erroneously invisible, then leave, open the main menu (different level) and change the resolution the DirectX crash from my previous post appears. EDIT: The DX problem and that (solved) entity problem are unrelated. Any help would be greatly appreciated - maybe even an inofficial interim version with those two bugs (engine_gettaskinfo + compiler) fixed? Thanks.
Last edited by Superku; 09/22/14 17:20.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
Re: recreating rendertargets and view-stages
[Re: Superku]
#445668
09/19/14 15:53
09/19/14 15:53
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
I think I may have found the reason for both the DirectX error and the issue with the disappearing models (finally!). The DirectX error appeared frequently today (prior to that I changed some stuff here and there, in the code and other content files), and after stripping down some levels (including the problematic one) and some other hub world related stuff I figured I should have a look at the jetpack. I re-saved the model and halved the skin size (thus re-saved the texture, too) and every error now seems to have magically vanished! However, I fear the cause for the issues seems to lie somewhere else and I have just postponed the next error again (esp. because now using the old texture again does not lead to an error, I may try to use an old model file from a backup and see if the model was the faulty file). I... I don't understand it, now the DirectX error appears every time again. This sucks.
EDIT2: Crashes after loading an almost empty level (1 block + player character) but doesn't after loading the complete first level. I have no idea how I am supposed to find and fix this issue.
EDIT3: I had low hope but I tested it anyway, it's not PC (config) specific, it crashes on my laptop, too.
Last edited by Superku; 09/21/14 08:25.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
|