Closed kronpano closed 4 years ago
I have been doing my best for solution of this problem in past these three days. I wondered why this problem has been occurred. There is no bug causes this problem, however many times I checked my code. But I find the bug related to recursively rule calling instead. ( #48 ) This is fixed in v1.1.7.
I was bewildered, and then I checked transformation matrix which was getting after compiling the eisenscript code. I compared with the result which was got using another library that calculates transformation. The result is the same.
Finally, I decided to create sample using another 3d library except three.js. I used babylonjs. The result is here.
I have come a long way... I guess this problem has been caused by three.js.
For resolving the problem, you have to use the another 3d renderer. But I do not know the suitable renderer. Sorry,
Thanks a lot for your great consideration.
I think so too. I guess that the bug is disclosed when using scaling and rotation in the same time. It might be have the problem about calculating the transformation.
I published my try-outs here (takes a bit to load and show the structure but it works - well - should work) The structure is a regular one - the script is
The problem is if you zoom in (mouse wheel) and look at the structure some arms are regular (1) but if you turn the structure (left click and drag/ right click shifts it) some are quite strange (2).
Not sure why that should happen if the script is just turn and rotate.
One - quite big difference to the original Structure Synth is that boxes are not sheared they stay boxes.
The following script 15 * {rx 10 x 1.1 s 1 1.3 1}box produces heavily sheared boxes in the original Structure Synth
but a tower of nice rectangular boxes in browser synth
This shearing also means that the structure I published on the website looks quite "rough" whereas in the original Structure Synth - due to the shearing - it is quite smooth
Just saying