but0n / Ashes

WebGL2.0 3D Engine - Global Illumination - RayTracing
https://codepen.io/but0n/pen/jddYoX
MIT License
331 stars 15 forks source link

I can't find any raytrace examples #43

Open trsh opened 4 years ago

trsh commented 4 years ago

Any pointers?

but0n commented 4 years ago

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

trsh commented 4 years ago

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

but0n commented 4 years ago

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 commented 4 years ago

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

but0n commented 4 years ago

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

but0n commented 4 years ago

Those textures has been removed. image

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

trsh commented 4 years ago

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 commented 4 years ago

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

trsh commented 4 years ago

Just did. Same thing

trsh commented 4 years ago

2020-03-07_151728

trsh commented 4 years ago

2020-03-07_151728

but0n commented 4 years ago

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 commented 4 years ago

I dont know how to fix this.

but0n commented 4 years ago

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 commented 4 years ago

2020-03-08_115541

but0n commented 4 years ago

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

trsh commented 4 years ago

Yes its there

but0n commented 4 years ago

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

Muini commented 4 years ago

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 commented 4 years ago

@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!