Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by flexrails · Nov 18, 2009 at 08:50 AM · graphicswebplayer

customize a unity texture from within flash/flex

hi i'd like to have a flash/flex app coexist with a unity app on one web page and have the flash/flex app to style a texture according to user input. then have the customized texture being applied to a unity model at runtime. how can that be done?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by jonas-echterhoff · Nov 18, 2009 at 10:44 AM

As Unity supports interaction with the JavaScript on the web site, you could in theory encode your texture as a string, and then pass that to a function in Unity from the Flash content using a JavaScript call. See docs for details.

Either that, or upload the texture to a server, and download it from Unity (which would be a waste of bandwidth, of course).

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image flexrails · Nov 18, 2009 at 11:10 AM 0
Share

jonas, thanks for the hint. you say "in theory". do you consider this approach to be a practical approach as well?

avatar image jonas-echterhoff ♦♦ · Nov 18, 2009 at 01:29 PM 0
Share

Yes, it should be practical, unless you require some high texture bandwidth - ie, it would certainly be to slow to stream a movie from flash to unity, because of all the overhead involved. Plus, I never tried it myself, so you never know what kind of fun challenges you run into :)

avatar image
1

Answer by Kuba · Nov 18, 2009 at 01:19 PM

Guys from Frenzoo are doing exactly what you want. Unfortunately I don't remember the details fully, but as Jonas suggested, the interaction was made through JavaScript. If you contact them and get an answer - please post it back :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by PaulT · Nov 18, 2009 at 09:33 PM

This is something that I want to find out, but never got the time and need to do it. I think the way to go is to use Base64 encoding and decoding.

A simplistic solution that is guaranteed to work is to upload the bitmapdata from Flash to a server and load that same image from Unity after completing the upload. It's not efficient, but it could serve as an alternative solution if it will not work through javascript.

[update] Just saw that my last suggestion was already given.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by burnumd · Jan 28, 2010 at 09:14 PM

You might check out what the folks at Aquiris have done with u3dobject. It's a swfobject like set of scripts for communicating with Javascript on a page or to flash content. Any communication you do is going to have to happen through the Javascript on the page, this framework just simplifies some tasks. Be aware, though, that to load a file directly from Unity, you'd have to serialize it as a string and recreate it in Unity or have your Flash/Flex store the image somewhere accessible and pull it down in Unity using the www class.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Mac webplayer graphic glitch 1 Answer

How to correctly size Unity web player using aspect ratio? 0 Answers

No Anti-Aliasing in webplayer 1 Answer

[SCREENSHOT] Why are my lighmapped shadows so blurry? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges