Today I Remembered!

in art •  last year 

20200806_193743.jpg

Art programming

The PBR, or Physical Based Rendering Effect caused a heck of a every since I added. It makes really cool effects.
I had five textures posted on an object.

Now I have six.

But when the Set Points Button was hit so the object would draw, the data display for sprites - the number of points, number of groups, faces, mouse, camera, et cetera would blank out and sometimes the program seized.

About two weeks ago I finally fixed, the program was perfect, and I accidentally erased all the changes the morning.

I could not remember how I did it. What caused the problem and the fix worked in the place.

It was that I had two variables named the m_rtvHeap, a descriptor of the Render Target View in two main classes and they fought over them and wreaked havoc from hell. One was the Hot3dxSceneRender reference class and the other was the DeviceResources class.

So, ultimately the fix, and hundreds of attempted traces, by me could not find the source of the problem again. Intellisense the AI that is in Visual Studio couldn't identify the source of the problem.

All I had to do was delete the m_rtvHeap variable in Hot3dx SceneRenderer.h and in cpp link it to the DeviceResources class.

I was about to erase the Physical Based Render Effect, I so frustrated.

Then I spent some time praying to God. Bingo! Prayer answered!

I immediately saved it and published all the fixes on GitHub.com/hot3dx/RotoDraw3D ...

The number of fixes and other upgrades and changes I made in other areas of the program was just about a complete rewrite - so everything now works!

And I will be able to use all these learned things in so many other aspects of programming!

Clashing, identical variable names - ARGGGHH! PROBLEM IDENTIFIED EQUALS PROBLEM SOLVED!

And, a lot other problems solved trying to identify the problem.

1atest.png

Hot3dxLogo.jpg

Hot3dxLogo2.jpg

Screenshot (13).png

Screenshot (14).png

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!