Skip to content

The view2.5D extension does not handle shape changes #11

Description

@brandesNW

In view2.5D extension if a shape is created, edited, deleted or imported no corresponding action happens in the 3D view.
Shapes can be turtle or link shapes.

Except in the case of editing a shape, an uncaught exception occurs.

To reproduce the bug.

Create a model that includes the following code

extensions [ view2.5d ]

to setup
  view2.5d:remove-all-turtle-views
  view2.5d:remove-all-turtle-views

  view2.5d:turtle-view "Test" turtles [ the-turtle -> [3 +  abs xcor] of the-turtle ]
  wait 1
  view2.5d:set-observer-distance "Test" 40

  view2.5d:set-z-scale "Test" 2
  view2.5d:set-observer-angles "Test" 25 30
  ;; increase the stem thickness
  view2.5d:set-turtle-stem-thickness "Test" .2
  view2.5d:update-turtle-view "Test" turtles
end

to create-ambulance
  create-turtles 1 [ set color orange set size 4 set shape "ambulance" setxy -2 3]
  view2.5d:update-turtle-view "Test" turtles
end

  1. Open the model
  2. Run the setup procedure
  3. Import the ambulance shape
  1. Open the Turtle Shapes Editor from the Tools menu
  2. Click on Import from Library ...
  3. Click on the ambulance entry
  4. Click Import
  1. Run the create-ambulance procedure

Result is

NetLogo is unable to supply you with more details about this error. Please report the problem
at https://github.com/NetLogo/NetLogo/issues, or to bugs@ccl.northwestern.edu, and paste the
contents of this window into your report.

com.jogamp.opengl.GLException: Caught NullPointerException: null on thread AWT-EventQueue-0
at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1327)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.opengl.awt.GLCanvas$12.run(GLCanvas.java:1442)

...

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions