sghr / iGeo

iGeo: Computational Design and 3D Modeling Library for Processing

Home Page:http://igeo.jp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IFieldVisualizer usage broken as per the tutorials

sketch34 opened this issue · comments

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);

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.

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...