playMaker

Author Topic: Upload image from user drive and use it as a texture in game.[SOLVED]  (Read 2007 times)

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Greetings ,

i have a hardy here...

Can this be done?

1) Click on gui texture or a 3d model or anything in the game (runtime)
2) Opens upload image window
3) once image is uploaded put image on a plane as texture  (or change material texture which i know how to do already)

Only with playmaker , or another asset (ngui or Daikon Forge for example) that works with playmaker and allow me to do this , without coding.

Any help is appreciated

Michael.
« Last Edit: July 30, 2014, 07:45:23 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Upload image from user drive and use it as a texture in game.
« Reply #1 on: July 30, 2014, 06:05:48 AM »
Hi,

 first, your texture will HAVE to be enabled for writing, which may not be the case in may situation, at least by default, so that's the first thing.

 then, I would strongly advise that you look for a system meant to provide this functionnality.

Typically, I know that with easySave you can do that.

http://u3d.as/content/moodkie/easy-save-2/1Sg

there is a sample with php/mysql code to save data on a server. And I have ported this for ArrayMaker, so you have this available within PlayMaker.

https://hutonggames.fogbugz.com/default.asp?W715

 Bye,

 Jean

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: Upload image from user drive and use it as a texture in game.
« Reply #2 on: July 30, 2014, 06:23:21 AM »
Greetings Jean ,

first of all thank you very very much for the reply.

i have easy save 2 , but client cant deal with php so we dumped this method.

I managed to do this , with wwwobject (read texture) then set / get texture and created in html 5 an external crop image /  image up loader.