Forum Replies Created
-
AuthorPosts
-
Getting v1.1.08 develop from github fixed it, thanks!
Stop with the name already.
I teach at master level at aau.dk, and have absolutly no problem using monkey.
The name is not an issue.
@Mark Sibly: Still loving MX2, great language getting better all the time.
I use it a lot, and find it great to work with. Mojo3D is a wonderfull addition.
Keep on trucking, at what ever pace you seem fit!
If you could get someone to give this site some general TLC like the one monkey-x had (I forget who did it), I’m sure you could grow Patreon contributions and sell more modules.
Please keep mobile alive. It is one of my core uses for Monkey, and MX2 is still hands down the best cross platform language/system for modern indie app development IMO.
Hugs.
I would like to save some generated images and svg files to a user specified folder, maybe just “downloads” on Android. Not sure where to put them on iOS, but the new 11, might have some pointeres, because theres a file manager in that.
Great stuff, thank you for sharing.
Yesterday I attended a presentation by Danish firm Rokoko about their Smartsuit Pro, and the presenter mentioned they use Kalman filters to clean up their sensor data, including the accelerometer. Could using that remove the delay?
https://en.m.wikipedia.org/wiki/Kalman_filter
I don’t use the project filter function, but it looks useful.
Could it read my .gitignore file instead, because it already selects almost the same files?
Thanks, I’ll go the Color.Create() route.
If you get around to it , a Ctor that takes #ffffffff and #ffffff params would be nice.
Thanks, I get it now, this is Pointer arithmetics.
Your ‘typed’ memcpys seems nice!
Confimed working.:-)
I’m probably being dim, but I don’t get why you don’t have to multiply by pitch, for the destination address.
If Local first:=_vertices.Length gets the number of elements, and memcpy needs a pointer to the destination address in bytes, your original code seems correct.
.
I think I reproduced it:
Monkey1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889#Import "<std>"#Import "<mojo>"#Import "<mojo3d>"Using std..Using mojo..Using mojo3d..Class MyWindow Extends WindowField _scene:SceneField _camera:CameraField _light:LightField _model:ModelMethod New()'get scene'_scene=Scene.GetCurrent()'create camera'_camera=New Camera_camera.Near=.1_camera.Far=100_camera.Move( 0,0,-5 )'create light'_light=New Light'create quad mesh'Local vertices:=New Vertex3f[4]vertices[0].position=New Vec3f( -1, 1,0 )vertices[1].position=New Vec3f( 1, 1,0 )vertices[2].position=New Vec3f( 1,-1,0 )vertices[3].position=New Vec3f( -1,-1,0 )Local indices:=New UInt[6]indices[0]=0indices[1]=1indices[2]=2indices[3]=0indices[4]=2indices[5]=3Local mesh:=New Mesh( )mesh.AddVertices(vertices)mesh.AddTriangles(indices)mesh.AddVertices(vertices) ' <-Error here' mesh.AddTriangles(indices)mesh.UpdateNormals()'create model for the mesh'_model=New Model_model.Mesh=mesh_model.Material=New PbrMaterial( Color.Red )_model.Material.CullMode=CullMode.NoneEndMethod OnRender( canvas:Canvas ) OverrideRequestRender()_model.RotateY( 1 )_scene.Render( canvas,_camera )canvas.DrawText( "Width="+Width+", Height="+Height+", FPS="+App.FPS,0,0 )EndEndFunction Main()New AppInstanceNew MyWindowApp.Run()EndProbably my code then, something that did not use to bomb, will investigate.
Wow! That is so elegant, and it just works!
In my own code, I get a “Memory Access Violation” in Mesh->Method AddVertices( vertices:Vertex3f Ptr,count:Int )
at libc.memcpy( _vertices.Data.Data+first*Vertex3f.Pitch,vertices,count * Vertex3f.Pitch )
should I make a reproducable example, or is this expected?
In my understanding, there is no class Tuple, it will be hidden in c++ layer.
And we can only work with its named componets.
So there is no ToString() method, if it wouldn’t be implemented directly in c++.
Bummer.
And how to serialize too.
They seem like prime candidates!
A Tuple should be able to have a ToString(), just like other objects.
In that, loop through the elements using their name and type, calling objects ToString()/ToXml() method when needed.
So I guess I’m thinking a Tuple should have a For eachin me iterator.
-
AuthorPosts