Forum Replies Created
-
AuthorPosts
-
January 20, 2018 at 10:12 am in reply to: derived class as argument for base class and other rules for inheritance #13059
Strange… Here with latest dev branch using “i686-6.2.0-posix-dwarf-rt_v5-rev1” and windows 10 I get the following. (see picture, whole code and console prints are visible, code attached as file too.)
January 20, 2018 at 8:04 am in reply to: derived class as argument for base class and other rules for inheritance #13055ok thanks
I thought invoking a method on a Null instance was giving an error..
I think you need to link your user up with a gravatar account if I remember…
OMG I spent 15 min trying to setup and link the gravatar but it’s not showing.. I quit for today. If anybody has clues to get it to work please tell. It’s a lot of work for an avatar picture! They say it makes life easier but I have some doubts.
There’s is a greyscaled logo and a colorful logo, they are both great but I rather like the colorful one.
I tried to upload a profile image to surf on the refresh wave but could not..
To access my profile I had to click on my nickname somewhere on the forum. But then I could not find how to upload a profile image. Do I miss something?Some more reading (that could make even less sense!) https://en.wikipedia.org/wiki/Rotation_matrix#Non-standard_orientation_of_the_coordinate_system.
In this article a rotation on negative coordinate system should turn clockwise… So there are several opinions!?
True that it would have been easier for this to be consistent.
BUT you can make canvas Extension with a “ConsistentRotate” method ..?
Ok I stop sorry
The “angle of rotation” article is not so great in a mathematical point of view (IMHO).
To me,this is the real stuff I think: https://en.wikipedia.org/wiki/Cartesian_coordinate_systemTrigs functions are usually set in a “standard” or “positive” orientation/handedness.
https://en.wikipedia.org/wiki/Cartesian_coordinate_system#Orientation_and_handedness.So, would that make the Sin function in Monkey2 wrong?
If there is something wrong, it is not inverting y axis in the canvas.matrix formulas. The formulas there are the ones for positive coordinate system but a canvas has negative coordinate system.
But on the other hand, it’s ok that AffineMatX uses a positive coordinate system as they are standart Maths concept. Canvas matrix directly uses AffineMat3 and that’s where it hurts.Edit: Canvas is turning counter clockwise so it’s actualy ok!? I’m confused now with all these definitions. ;P
Great thanks worked almost perfectly. Had to add just a “:Int” after “Lambda”
Monkey123456789Class DepthSort Implements ISorterMethod Update( objects:Stack<LayerObject> )' sort this stack of layerobjectsobjects.Sort( Lambda:Int(a:LayerObject,b:LayerObject)Return a.Z - b.ZEnd )EndEndCanvas.Rotate could have been defined as clockwise (inverting y axis in the matrix stuff). But seem a bit late to change it now.
I agree with the contrast thing. I prefer sligthly greyed backroud than sligthky lighted font..
About the crayon thing. It would be great if It was by default 500px High so we don’t have to scroll walls of code. Setting it to 500 px High needs several steps and a few people do it (CRAYON>enable Height>switch Min to Max). This even is we use the CODE tag and not the CRAYON Tag.
The little logo that is now on the side of the bookmark is NICE. KUDOS!
Looks like the “New” page has a piece of the “Home” page in the back! (see attached image)
And the “admob” and “inapp purchase” modules are the first thing you see on the “News” page. Don’t know if it’s intentional, it doesn’t feel new to me but hey those modules deserve visibility!
Very nice work. I’m glad to see these changes, it a great fresh wind for mx2!
Attachments:
I’m looking forward to see this!
I have a little suggestion about the doc page. I’m actually using the old theme because the treeview font (left column) is a bit small/blurry on my screen. So a neater/bigger font would be great!
And the doc’s search box is cleared when you type return, and I can’t get used to that. So 1 times on 4 I hit return and have to type my search again. If someone know how to change that it would be great too.Thanks for your answers!
Could you send me the project?
It’s with “pyro-scenegraph\bananas\b02_advanced\b03_zoom_rotate.monkey2”. Just unzoom for long enough and it will crash. It could be nice to have a minimum zoom factor to prevent this fatal crash for example. I implemented it on my side but more solid is more reliable..
I know it’s a bit strange to unzoom that far but with chipmunk physics it’s actually something that you might want to do sometimes (astro travel for example). So knowing how far we can go can be an important clue in the game design.
There’s someting else I would have to implement into pyro (Ithink) because I have no access to the camera’s private field _offset. It’s for a getMatrix (or get back transformed canvas) of the camera. I need this to implement box2d/chipmunk debugdraws more easily. Registering all the shapes as layer objects then clearing them is not comfortable at all. Actually the only private field I can’t get is the _offset one. Is _offset for layer.Multiplier offsets? For now it’s not a problem and I use the following camera extension to achieve this.
What about a Github repo?Monkey1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556Class Camera ExtensionMethod SetByCenterViewpoint(viewpoint:Vec2f,zoom:Float,rotation:Float,vResolution:Vec2f)RotationPoint=vResolution/2ZoomPoint=vResolution/2Location=viewpoint-(vResolution/2)Rotation=rotationZoom=zoomEndMethod GetTransform:AffineMat3f(mat:AffineMat3f=New AffineMat3f())' !!!!Don't know how I can acces this private variable from outside pyro-scenegraph.monkey2 !!!' Is the offset related to the layer's .Multiplier ?'_offset.x=width*_scale.x*.5-VirtualWidth*.5'_offset.y=height*_scale.y*.5-VirtualHeight*.5'mat=mat.Translate( -_offset )mat=mat.Scale( Scale )mat=mat.Translate( RotationPoint)mat=mat.Rotate( Rotation*EngineBehaviour.RotationMode )mat=mat.Translate( -RotationPoint )mat=mat.Translate( ZoomPoint )mat=mat.Scale( Zoom,Zoom )mat=mat.Translate( -ZoomPoint)mat=mat.Translate( -Location )Return matEndMethod TransformCanvas(cnv:Canvas)'_offset is missingcnv.Scale( Scale )cnv.Translate( RotationPoint)cnv.Rotate( Rotation*EngineBehaviour.RotationMode )cnv.Translate( -RotationPoint )cnv.Translate( ZoomPoint )cnv.Scale( Zoom,Zoom )cnv.Translate( -ZoomPoint)cnv.Translate( -Location )EndEndWhere can I find the source code of the demos?
you can get chat history on irc
Yes ok, but I’ve never used IRC this way and I think a lot of people do the same(?). Discord is fine, it looks like a little club lobby, and is user friendly.
I really appreciate ted2go’s chat but, finally, I’ve never really used it except to say hello.To me it’s compatible. IRC is more a instant chat and Discord is a kind of delayed one. I don’t try to get an IRC history for example.
-
AuthorPosts

