iiceman Posted November 2, 2015 Share Posted November 2, 2015 Hi again, in the example you have this line:var texcoords = pickResult.getTextureCoordinates();The variable texcoords now has an object that contains the x and y coordinates on the texture. So this is where the next point will be drawn in the example, but you can do with this whatever you want. Is that waht you need? Quote Link to comment Share on other sites More sharing options...
neelepl87 Posted November 2, 2015 Share Posted November 2, 2015 Hi iiceman, I tried to put alert to see what are the coordinate 'texcoords' is printing. Seems like it is not holding some points on the drawn curve. For example if I manage to draw a line with mouse from ( 1,2) to (5,2), I want some way to get points - (1,2), (3,2) and (5,2). s there any way to get it ? Thanks again. Quote Link to comment Share on other sites More sharing options...
iiceman Posted November 2, 2015 Share Posted November 2, 2015 I think it should... take a look at this: http://www.babylonjs-playground.com/#9U086#61 It logs the coordinates in your browsers debug console when drawing. To get the x-value you could also write texcoords.x and for y-value texcoords.y. It's just that it's writing that object 60 times per second... but you said as many points as possible Quote Link to comment Share on other sites More sharing options...
ozRocker Posted July 14, 2016 Share Posted July 14, 2016 hey @iiceman I thought your playground example was cool so I made a multi-player version of it here www.punkoffice.com/webiverse Its not perfect though. There can be problems when 2 people work on it at the same time. Some changes get lost. I'm working on ways to improve it. Everything is so much harder when its multiplayer :/ GameMonetize, dbawel and iiceman 3 Quote Link to comment Share on other sites More sharing options...
ozRocker Posted July 15, 2016 Share Posted July 15, 2016 Hmm....I'm not as happy as I was yesterday. This anonymous user keeps drawing penises and some Polish guy drew a big red swastika. This is what happens when you open it to the world. You attract savages! NasimiAsl and dbawel 2 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted July 15, 2016 Share Posted July 15, 2016 33 minutes ago, ozRocker said: Hmm....I'm not as happy as I was yesterday. This anonymous user keeps drawing penises and some Polish guy drew a big red swastika. This is what happens when you open it to the world. You attract savages! don't care for rude people and be happy Quote Link to comment Share on other sites More sharing options...
ozRocker Posted July 15, 2016 Share Posted July 15, 2016 3 minutes ago, NasimiAsl said: don't care for rude people and be happy The problem is everyone that logs in will see it and might leave straight away, or hold me responsible. This guy uses a lot of different IP addresses so he's hard to track. I'm checking online for penis drawing (not photo) detection algorithm but apparently its not so easy. Nintendo spent weeks creating a filter for it Quote Link to comment Share on other sites More sharing options...
iiceman Posted July 15, 2016 Share Posted July 15, 2016 Well, it's probably impossible since pretty much everything can look like a penis, maybe somebody just wanted to draw a puppy: http://www.collegehumor.com/post/6972887/literally-everything-is-shaped-like-a-penis You could hide the content and show a notice that the content on the board is user generated and you don't take responsibility for it and only show it after the user confirmed that. NasimiAsl, jerome and dbawel 3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.