Open vikkio88 opened 4 years ago
unfortunately does the same on example 11
[~/ndd/heaps-examples/11_heaps_shader3d] [master *]
-> % haxe game.hxml && hl game.hl
Game.hx:51: characters 19-37 : Type not found : h3d.scene.DirLight
found the issue, I am using heaps1.8.0 and they changed namespace, will open a PR
Hey,
I believe in a recent change in Heaps, rendering Classes have been split into two types: “fwd” (forward rendering) and “pbr” (physically based rendering) and the old Classes like DirLight have been put into the respective pbr/fwd subfolder.
I think “fwd” is the equivalent to the old default rendering. So instead of h3d.scene.DirLight it should now be:
var light = h3d.scene.fwd.DirLight(...
(note the added “.fwd” in there)
The examples haven’t been updated yet, that’s why they still point to the wrong folder.
Hope this helps :^) I ran into the same problem recen
from here
Unfortunately the author didn't specify versions he used (haxe, heaps, and in some examples other libs are used, with who knows what versions), so after half a year the examples won't work with the modern versions ofc. A lot of work, but useless. Shame...
@JerryGreen I had also done a PR to fix that, but it's still there. if you are interested though I adopted this codebase, rebased and translated all examples to English from Russian: https://github.com/nientedidecente/heaps-examples
Hi there, while trying to compile example 10 on sdl I am getting an error
weirdly enough in the main doc here the link to the source code is broken like it is not there anymore https://github.com/HeapsIO/heaps/blob/master/h3d/scene/DirLight.hx