XNAGameStudio
XNAGameStudio copied to clipboard
Query on Riemers 3D tutorial
Although in Riemer's original tutorial code the lampposts are never drawn, you shouldn't just add the pictures as if they were drawn and then contend everything works like it should do.
Can you elaborate?
The code remains unchanged from Riemers original implementation, as do the tutorials. This site is archiving the content, not altering (except for upgrading samples to now work in MonoGame)
I owe you an aplogize. Maybe I was too tired serarching for a working code to this Riemer's HLSL thing from the Internet that I was talking about. I finaly found a code from some Russian blog which was close to draw those lampposts right way but, not close enough. I don't know if Riemer has ever had a working code on his blog. It maight be so he has changed his code afterwards, who knows. ShadowMapDemo.zip ReimersShadowMap3.zip ReimersShadowMap1.zip ReimersShadowMap0.zip
No worries @neau33 , I'll check out your downloads and do some comparisons and see if I can improve the sample.
MessinWithTheLightAndLampposts.zip
Here's my best shot with lampposts until now. I think the problem is there's no external material bound to the lamppost.x model file as is case with the car.x file so that's why it maight be hard to bound the lamppost stuff to the streettexture.
I tried to study the lamppost.x model file with ModelConverterX program whit no success because the program is not able to open binary formated model files. When I took a look at what was inside the file with a Hex editor I found it has only three material meshes to load instead of car.x file's seven and no bound external materials at all. However I kept study the case a bit further, downloaded a free lamppost model file put the file instead of the orginal but, the result was exactly the same. No desired result so the problem wasn't there like I thought at first. I went back to Riemer's site to see if I missed something. I compared the code in your blog to that in Riemer's blog and found they're not exactly the same anymore. So Riemer has been changed his code afterwards as I suspected before. It could be so that the model file in question wasn't Riemer's and he had not rights to share the file at his site so he had to change his code so everything seemed to be own and beautiful.
Edit: I finally successed with the lampposts to be drawn looking like they're right in place but, the shadows look against the wall like the lampposts hang high on the air 😁
Progression? Riemers3DHLSL.zip It seems like the original model file (lamppost.x) is corrupted or it has been modified in a wrong way. I found a free lamppost model from the Internet and used it instead of the original. Now it looks like it is working exactly as it should.
Naturally the next thing would be turn the lights on to these lamppost. Will be continued on next time...
Edit: @SimonDarksideJ would you blease trun the lights on, will you?
Now the lampposts are drawn in color brown and I feel I'm quite close but, still so far away... ShapingTheLight.zip...
Sorry just spotted this issue update, is this still a problem @neau33 ?