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

Mikkelsen normal maps #26

Closed
unicomp21 opened this issue Oct 9, 2016 · 6 comments
Closed

Mikkelsen normal maps #26

unicomp21 opened this issue Oct 9, 2016 · 6 comments

Comments

@unicomp21
Copy link
Collaborator

How hard would it be to add support for mikkt space bump maps? These are pretty much the standard these days for xnormal, blender, ue4, unity3d, etc. I've got some cool stuff I'd like to create demos for if we can get this added. I did a pyramid demo a while back which consumed crazy amounts of bandwidth, this is the ultimate way to cut down on size while keeping detail.

three.js code is here:
https://threejs.org/examples/webgl_materials_bumpmap.html

@muth02446
Copy link
Contributor

I do not think this is very hard and it would be nice to have this as an example.
The three js code uses a json file for the vertex data and a jpeg for the bump map.
It also references a zip archive with equivalent information including and obj file -- and
ChronosGL already has a loader for obj files (c.f. obj example).

So what is missing is a new shader that takes the bump maps into account.
You could start with the shader used by the light or shadow examples.
I can do some handholding if necessary.

@muth02446
Copy link
Contributor

I have just added a new example that is about 90% there:

https://github.com/rhulha/ChronosGL/tree/master/example/bumpmap

@unicomp21
Copy link
Collaborator Author

unicomp21 commented Jan 9, 2017 via email

@ghost
Copy link

ghost commented May 17, 2018

Any updates?

@robertmuth
Copy link
Contributor

The current state of the example can be seen on the examples page at

http://chronosteam.github.io/ChronosGL/Examples/

The relevant one is:

http://chronosteam.github.io/ChronosGL/Examples/bumpmap/bumpmap.html

It looks a little off but I lack the expertise to debug this further.

@robertmuth
Copy link
Contributor

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

3 participants