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

  • Home
  • SEARCH
  • 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 840069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:33:58+00:00 2026-05-15T05:33:58+00:00

HI all, I’m developing a software to control light show ( through DMX protocol

  • 0

HI all,

I’m developing a software to control light show ( through DMX protocol ), i use C# and wpf to develop my main software (.net 4.0)

To help people preview their show, i would like to make a live 3D visualizer…

First, i thought that i could use wpf 3D to make the visualizer, but i need to work with light ..

My main application should send property ( beam angle, orientation (X,Y), position(X,Y), Brush ( color,shape,effect)) to the 3D visualizer

But i would like to be able to move light (position in the scene) by mouse during execution and had value in return…

So ..

Does XNA is the easiest way to doing that ?

Can you help me for that :

  • Generating light (orientation , bitmap like filter in front of light )

  • Dynamically moving object with mouse and get position in return

  • Dynamically add or remove fixture

All of your advice, sample, example are very welcome … I don’t espect to have a perfect result at the first time but i need to understand the main concepts for doing that

Thank You !!

  • 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-05-15T05:33:59+00:00Added an answer on May 15, 2026 at 5:33 am

    XNA does not contain any functionality for managing a “scene” – you will have to implement that yourself. For example: you might make a Light class containing the information about your light (position, orientation, etc), and then have a List<Light> of them, which you update and render yourself.

    I will now assume that you have a 3D model of a “Light” (as in: the metal box containing the lightbulb) and also a 3D model of a stage. And that you can figure out how to render them – there are plenty of tutorials online for simple model rendering in XNA. Here is a starting point.

    So your 3rd requirement (“Dynamically add or remove fixture”) should be fairly simple once you can render things. Just add and remove Lights from your List of them based on user input. See the Input namespace.

    And your 2nd requirement (“Dynamically moving object with mouse and get position in return”) should also be simple. If you want your user to move lights by clicking and dragging, just keep track of the mouse position between frames and apply that as an adjustment to the clicked Light’s position (or rotation).

    To figure out which Light the user clicks in the first place, a good starting point is the Picking Sample.

    I am assuming here that the user will click the Light (metal box) itself to move/rotate it. If you would rather have the user click and drag the endpoint of the light (the spot it projects) – that is more difficult. One idea that comes to mind: Intersect a ray from your Light with the stage to find the centre of the projected spot. At that point draw a dummy “handle” object (like a sphere) that the user can click and drag around. When the user finishes dragging, figure out the new orientation for the Light to make that the new centre.

    Finally your 1st requirement (“Generating light (orientation , bitmap like filter in front of light )”) is the tricky one. My understanding of this is that you want a way to draw the endpoint of the beam of light on your stage model? If so, what you are looking for is called Projective Texture Mapping. Presumably you will have a circular texture for basic lights, and perhaps other textures for gobos.

    The quick-and-dirty way to do this would be to draw your stage model, once for each light, with additive blending (so that each light added with the other lights and the black had no effect), with a colour set to whatever you want the light colour to be, and with a black and white texture (a white circle on black background) drawn with TextureAddressMode.Clamp, with a shader that draws the texture with projective texture mapping which is set up with the light as the projection point.

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

Sidebar

Ask A Question

Stats

  • Questions 459k
  • Answers 459k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Do you already have this as a DateTime? If so,… May 15, 2026 at 11:28 pm
  • Editorial Team
    Editorial Team added an answer My guess is that you are updating the matrix inplace,… May 15, 2026 at 11:28 pm
  • Editorial Team
    Editorial Team added an answer As Anurag said, the only general solution is cloning. However,… May 15, 2026 at 11:28 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.