sghr / iGeo

iGeo: Computational Design and 3D Modeling Library for Processing
http://igeo.jp
GNU Lesser General Public License v3.0
148 stars 34 forks source link

IFieldVisualizer usage broken as per the tutorials #2

Open sketch34 opened 11 years ago

sketch34 commented 11 years ago

I am pasting the sketch code from these examples into the latest version of Processing: http://igeo.jp/tutorial/50.html

IFieldVisualizer doesn't render anything for the early simple examples such as:

import processing.opengl.; import igeo.;

size(480, 360, IG.GL);

new IAttractor(-50,0,0).intensity(10).clr(1.0,0,0);//attractor new IAttractor(50,0,0).intensity(-10).clr(0,0,1.0);//repulsion

// last 3 inputs are sample number in x, y, z. new IFieldVisualizer(-100, -50, 0, 100, 50, 0, 40, 20, 1);

sghr commented 10 years ago

There was a bug in point based fields like IAttractor and IPointCurlField. This should be fixed in the current version 0.9.0.4. Thanks for letting me know.

ghost commented 3 years ago

I am pasting the sketch code from these examples into the latest version of Processing: http://igeo.jp/tutorial/50.html

IFieldVisualizer doesn't render anything for the early simple examples such as:

import processing.opengl.; import igeo.;

size(480, 360, IG.GL);

new IAttractor(-50,0,0).intensity(10).clr(1.0,0,0);//attractor new IAttractor(50,0,0).intensity(-10).clr(0,0,1.0);//repulsion

// last 3 inputs are sample number in x, y, z. new IFieldVisualizer(-100, -50, 0, 100, 50, 0, 40, 20, 1);

write these codes under setup function...