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

I can't find any raytrace examples #43

Open
trsh opened this issue Mar 5, 2020 · 20 comments
Open

I can't find any raytrace examples #43

trsh opened this issue Mar 5, 2020 · 20 comments

Comments

@trsh
Copy link

trsh commented Mar 5, 2020

Any pointers?

@but0n
Copy link
Owner

but0n commented Mar 5, 2020

Here is the ray tracer demo:
https://github.com/but0n/Ashes/blob/master/bvh.html

@trsh
Copy link
Author

trsh commented Mar 5, 2020

Well it's not working. I got light brown screen and "1" printed in console

@but0n
Copy link
Owner

but0n commented Mar 6, 2020

Well it's not working. I got light brown screen and "1" printed in console

Is there other error messages in console?
Can you provide the screenshot?

Currently some assets such as HDR environment textures might not available in this repository, perhaps this caused an 404 error, and the it interrupted.

@trsh
Copy link
Author

trsh commented Mar 6, 2020

No other messages in console. And yes One texture was missing, I replaced it with something, but still nothing...

@but0n
Copy link
Owner

but0n commented Mar 7, 2020

OK, I will clean the code, make sure all these textures are available.

but0n added a commit that referenced this issue Mar 7, 2020
@but0n
Copy link
Owner

but0n commented Mar 7, 2020

Those textures has been removed.
image

Press K to toggle debug mode and rendering mode.
Press U & J for camera up and down.

@trsh
Copy link
Author

trsh commented Mar 7, 2020

So I fallowed the instructions

git clone https://github.com/but0n/Ashes.git
cd Ashes

# if you don't have yarn installed
npm install -g yarn

yarn

yarn dev

opened http://127.0.0.1:8080/bvh.html in firefox&chrome (Webgl2 enabled) and nothing happens.. just slightly brown background, "1" in console and after some while the Tab starts to hang the whole browser. Btw I'm on windows 10 64bit. GPU is GTX 750 Ti

@but0n
Copy link
Owner

but0n commented Mar 7, 2020

You can try git clone --recursive https://github.com/but0n/Ashes.git if Ashes/gltfsamples is empty.

@trsh
Copy link
Author

trsh commented Mar 7, 2020

Just did. Same thing

@trsh
Copy link
Author

trsh commented Mar 7, 2020

2020-03-07_151728

@trsh
Copy link
Author

trsh commented Mar 7, 2020

2020-03-07_151728

@but0n
Copy link
Owner

but0n commented Mar 8, 2020

Hmmm, it's weird, seems it stopped after download the first hdr cube texture: https://github.com/but0n/Ashes/blob/master/bvh.html#L94

It should be like this:

image

@trsh
Copy link
Author

trsh commented Mar 8, 2020

I dont know how to fix this.

@but0n
Copy link
Owner

but0n commented Mar 8, 2020

I tried again with following command and it works fine:

git clone --recursive https://github.com/but0n/Ashes.git a2 && cd a2 && yarn && yarn dev

Can you visit this website and send me a report?
https://webglreport.com/?v=2

@trsh
Copy link
Author

trsh commented Mar 8, 2020

2020-03-08_115541

@but0n
Copy link
Owner

but0n commented Mar 8, 2020

Thank you, can you go to the gltfsamples folder see is there has DamagedHelmet.glb?

@trsh
Copy link
Author

trsh commented Mar 8, 2020

Yes its there

@but0n
Copy link
Owner

but0n commented Mar 8, 2020

Thank you, I will find a similar environment and try to figure out what's going on.

@Muini
Copy link

Muini commented May 18, 2020

Hi ! I just tried and got the same problem.
However, I noticed missing files :
image
I checked and there is no .hdr in envmap folder, not on master branch anyway, maybe you need git LFS to commit them. I would love to try those demo too :)

@but0n
Copy link
Owner

but0n commented May 19, 2020

@Muini
Yeah, I haven't upload HDR textures yet due to certain reasons, can you check out 568bb22 ? That version doesn't requires extra HDR textures. Thank you!

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