Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Request JavaScript Image resize in a plane

misterpaint
Registered User
Quote
2018-11-22 07:36:28

is it possible to create a JavaScript that allows you to insert an image into a "plane" and that maintains its proportions?

I have to insert rectangular images into square plane. also the image once inserted for a fact of proportion leaves some margin to the sides, it is ok equally provided it is in proportion


srfstudio
Registered User
Quote
2018-11-22 21:12:07

I'm not sure I understood what you want to do but if you want to have 1024/512 texture on 1024/1024 plane than why don't you just place 1024/512 texture on top of 1024/1024 texture and than place that texture on a plane?

If texture is suppose to be on a transparent plane than just make problematic parts of a texture with zero alpha.

...sorry if I misunderstood what you wanted :)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact