New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setStroke() does not work with imported OBJ Pshapes #4377

Closed
paraclete-pizza opened this Issue Mar 29, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@paraclete-pizza

paraclete-pizza commented Mar 29, 2016

If I load in a *.obj file using loadshape(), I can bring the file in, and change its color using setFill(). However, setStroke() and setStrokeWeight() have no effect on the shape, whereas with shapes created using createShape, it would result in a 'wireframe' effect of every poly being outlined.

@codeanticode codeanticode self-assigned this Mar 30, 2016

@codeanticode codeanticode added the opengl label Mar 30, 2016

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Mar 30, 2016

Member

@paraclete-pizza thanks for reporting this. Actually, setStroke() works partially, if you do the following:

    obj.setStroke(true);
    obj.setStroke(color(0, 255, 0)); // needs to be different from black
    obj.setStrokeWeight(1.2f); // if the weight is too small, the stroke won't be visible (it will be occluded            
                                               // by the faces of the object (strokes in 3D can be tricky).
    obj.setFill(color(255, 0, 0));

you should have green strokes applied to your obj shape. However, due to a bug in the logic, black strokes are ignored, this is taken care of with 2a8d62b

Member

codeanticode commented Mar 30, 2016

@paraclete-pizza thanks for reporting this. Actually, setStroke() works partially, if you do the following:

    obj.setStroke(true);
    obj.setStroke(color(0, 255, 0)); // needs to be different from black
    obj.setStrokeWeight(1.2f); // if the weight is too small, the stroke won't be visible (it will be occluded            
                                               // by the faces of the object (strokes in 3D can be tricky).
    obj.setFill(color(255, 0, 0));

you should have green strokes applied to your obj shape. However, due to a bug in the logic, black strokes are ignored, this is taken care of with 2a8d62b

gohai added a commit to gohai/processing that referenced this issue May 9, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment