XNAGameStudio icon indicating copy to clipboard operation
XNAGameStudio copied to clipboard

Query on Riemers 3D tutorial

Open neau33 opened this issue 4 years ago • 8 comments

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.

neau33 avatar Aug 17 '21 08:08 neau33

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)

SimonDarksideJ avatar Aug 17 '21 21:08 SimonDarksideJ

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

neau33 avatar Aug 18 '21 17:08 neau33

No worries @neau33 , I'll check out your downloads and do some comparisons and see if I can improve the sample.

SimonDarksideJ avatar Aug 18 '21 18:08 SimonDarksideJ

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.

neau33 avatar Aug 18 '21 23:08 neau33

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 😁

neau33 avatar Aug 20 '21 01:08 neau33

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?

neau33 avatar Aug 20 '21 08:08 neau33

Now the lampposts are drawn in color brown and I feel I'm quite close but, still so far away... ShapingTheLight.zip...

neau33 avatar Aug 21 '21 05:08 neau33

Sorry just spotted this issue update, is this still a problem @neau33 ?

SimonDarksideJ avatar Sep 06 '22 08:09 SimonDarksideJ