Forum Replies Created
- 
		AuthorPosts
 - 
		
			
				
I’ve had the same problem since updating to the latest Windows 10 Creator’s Update. I now have to disable my 3rd party antivirus in order to build and develop with monkey2 Windows/MinGW. Monkey2 is not alone either; it seems as if anything that copies or moves big groups of files get locked up with an antivirus that used to work flawlessly.
Anything creative I’ve ever done coding wise, was either on my old A500, or in one of Mark’s languages. I hope monkey2 is here to stay.
Thanks Mark! This puts me on the right path.
Thanks Mark. I’ve ported the library code to use char_t on your advice. It does mess up the code a bit, but a class I am writing already wraps the library anyway so all is well.
Thanks abakobo.
Ok, after more thought, I’ve come up with this:
[/crayon]Monkey12[crayon-5cba887bae91f698045044 inline="true" ]Local myStr:String = String.FromChars(New Int[256])myStr = get_library_path(myStr)This “appears” to work when compiled and ran, but is it a safe call to make?
Thank you all! I set the name of the function to the C++ equivalent (no underscore at the beginning), and changed the Byte Ptr to CString in the extern, and now it all works.
[/crayon]Monkey12345678910111213141516171819[crayon-5cba887bb2132501727902 inline="true" ]#Import "<mojo>"#Import "<std>"Using mojo..Using std..#Import "../../sweph/lib/libswe.a"#Import "../../sweph/src/swephexp.h"ExternFunction swe_set_ephe_path:Void(path:CString)PublicFunction Main()Print "This is the beginning of EphTest.monkey2..."Local pth:String = "../../ephemeris"swe_set_ephe_path(pth)End FunctionThe introrim.dae was created in Poser by using a torus primitive and scaling it down with a morph target. After I read your response, I created another torus in blender and now the lights behave as expected in Mojo3d. So much for using Poser as a modeller. :>
Thanks for your time.
Thank ya sir.
The model was originally created by Kim, who has it marked for personal use only license (https://free3d.com/3d-model/2-birds-96007.html)
PapaSmrfe rigged the model for Poser (https://www.renderosity.com/mod/freestuff/?uid=155416) and he says you can distribute it for non-commercial purposes. He says in the readme that “Verbage at the bottom of the download page states that the files are, ” … licensed under the Attribution-Noncommercial-Share Alike 3.0 Unported License. In short: you are free to distribute and modify the file as long as you attribute it’s author(s).” ”
Not sure if you could use it in Monkey2 without permission from Kim, as I could not find such “verbage” on Kim’s download page. I used it for troubleshooting purposes since I figured that was personal.
As far as your reproduction of the problem goes, yes, you are getting the same black polygons that I get. I must say that I am VERY impressed that I could export a model rigged and animated in poser directly into Monkey2! Nice!
I can’t send the original model, but I can send a free one that exhibits the same behavior.
When you run the code, you’ll notice the black streaks that distort as you browse the bird flying with the arrow keys. When I originally exported the model, I included the rigging and animation, and excluded the lights and camera. The export options were:
Multi-frame export (30 frames)
Included normals
Baked all morphs onto the model.
I hope this helps, and thanks for your time!
Attachments:
 - 
		AuthorPosts