-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Setting the camera position and have a good visualization might be tricky, you can follow the guidelines described in the basic concepts page.
Also, if you are using really big distances and sizes, or really small ones, you might need to adjust the simulation scale in your simulation properties.
You need a scale which is not too large (if the scale if greater or close than your object size, your objects might not be rendered) and not too small (rendering really big objects compared to the scale might cause some minor rendering issues).
Quick fix : set the simulation scale to the size of your smallest object divided by ten
This issue might be related to a iets3.opensource issue. If simpleTypes is not imported in your current model, or you imported it after the creation of your model, it might not be updated yet.
Quick fix : import org.iets3.core.expr.simpleTypes (if not already included via the Physics devkit or manually) and restart MPS
Wiki Todo: remove the restarting MPS part when the linked issue is resolved
Abstract force call are a bit specific regarding their arguments edition.
You have to specify an argument you first want to fill (<ctrl> + <space> in the empty parenthesis to choose), or insert a missing one by pressing enter (when done with an argument, just press enter or , to fill the next one).
Because of the java dependencies and with newer java versions, it is possible that the code wont run on some environments with the error below.
java.lang.IllegalAccessError: class processing.opengl.PJOGL (in unnamed module @0x4206a205) cannot access class com.jogamp.opengl.glu.GLU (in module jogl.all) because module jogl.all does not export com.jogamp.opengl.glu to unnamed module @0x4206a205
A quickfix for now would be to add the following arguments to the VM options (Run > Edit configurations > Select the configuration that failed after running a node and add content below to VM parameters).
--add-exports gluegen.rt/com.jogamp.common.util=ALL-UNNAMED
--add-exports jogl.all/com.jogamp.opengl.glu=ALL-UNNAMED
--add-exports jogl.all/com.jogamp.newt=ALL-UNNAMED
--add-exports jogl.all/com.jogamp.newt.opengl=ALL-UNNAMED
--add-exports jogl.all/com.jogamp.newt.util=ALL-UNNAMED
--add-exports jogl.all/com.jogamp.newt.event=ALL-UNNAMED
--add-exports jogl.all/com.jogamp.opengl.util=ALL-UNNAMED
--add-exports jogl.all/com.jogamp.nativewindow.util=ALL-UNNAMED
Any more practical solution is welcome!
The :~: operator is not supported by default in kernelF, instead there is some helper function implemented.
See :
- org.iets3.core.expr.base.typesystem.TypingHelper
- jetbrains.mps.samples.Physics.typesystem.TypeComparisonHelper (extension of the above method to support "zero values" comparison with numeric types only)
- jetbrains.mps.samples.Physics.typesystem.typeof_CartesianCoordinates (example of use with dimensions)