Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query on Riemers 3D tutorial #14

Open
neau33 opened this issue Aug 17, 2021 · 8 comments
Open

Query on Riemers 3D tutorial #14

neau33 opened this issue Aug 17, 2021 · 8 comments

Comments

@neau33
Copy link

neau33 commented Aug 17, 2021

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.

@SimonDarksideJ SimonDarksideJ changed the title This stinks! Query on Riemers 3D tutorial Aug 17, 2021
@SimonDarksideJ
Copy link
Owner

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)

@neau33
Copy link
Author

neau33 commented Aug 18, 2021

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

@SimonDarksideJ
Copy link
Owner

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

@neau33
Copy link
Author

neau33 commented Aug 18, 2021

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
Copy link
Author

neau33 commented Aug 20, 2021

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
Copy link
Author

neau33 commented Aug 20, 2021

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
Copy link
Author

neau33 commented Aug 21, 2021

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

@SimonDarksideJ
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants