Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9030517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:30:38+00:00 2026-06-16T07:30:38+00:00

In unity3d I get image from camera (color camera device) as byte array from

  • 0

In unity3d I get image from camera (color camera device) as byte array from a plugin , and I want show image in real-time in screen .

If i use Texture2D.SetPixels32 for making a texture, it decrease fps dramatically ( from 80 to 10).

//First convert byte[] to color[]
  colorr = GetColor(imageBuffer);

  imageColor.SetPixels32(colorr);
  imageColor.Apply();   // fps reduced here

I guess I need to do this with a shader on GPU .

So what is solution to do this faster ?
If answer is using shader , can give a sample .

Thx.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:30:39+00:00Added an answer on June 16, 2026 at 7:30 am

    I have done it with using openGL.
    Just write a plugin for unity and get Texture2D NativeID from unity and send that to the plugin
    then use openGL to set bytes to the texture !
    It was amazing ! FPS increased from 10 to 50 !!!
    also you need to know that you have to run games in OpenGL mode, with “-force-opengl” to use opengl functions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to send a GET request to Facebook from unity3d and retrieve it's
I want to using the Unity3d framework for a project in which I have
I am working on a Unity3d for Android project. Using the documentation from Unity:
I want to make a main Gameobject in Unity3D that would act as a
The unity3d web player plugin is supported by Explorer, Firefox, Safari, Mozilla, Netscape, and
I am creating a iOS plugin for unity3D. below is the code. How ever
I've worked for some time with Unity3d and found it's 2D part with OnGUI()
I'm trying to use .Net serialport methods from another program which uses Unity3D engine.
I am learning how to post data to a web server from Unity3d as
I m working on a plugin for unity3d using java. i dont know why

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.