Solved

Writing plugins

Posted on 1997-07-17
2
276 Views
Last Modified: 2013-12-26
Im planning on writing a raytracer using Rayshade as a base to work from. I will try to rewrite it in C++ and add the possibility to add your own objects, textures and shading plugins. Of course I will loose portability but that is of no great concern.
What, if there is any, is the best way to do this?

Christer O.
0
Comment
Question by:m94_ols
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
mwt earned 100 total points
ID: 1291590
1. I'm sure that you've already heard of QuickDraw 3D so why not use that as your foundation then you get all the objects, textures and shading for free and you can concentrate on your raytracer/renderer.

2. Otherwise, if you are asking how to do it in Rayshade, you will need to dig deeply into the Rayshade code to find all the places where objects, textures and other rendering code is and jam your own  plugin architecture. I suspect if you take this route it won't be pleasant and it'll turn into a software engineering project rather than a raytracer project, but good luck!

3. Otherwise, if you are asking how to write plug-in architectures; I would take a look a how Apple has done it with CDEFs and WDEFS, how Microsoft has done it with Excel and how Netscape has done it with their Navigator plug-in architecture. In general terms they all do it by calling a code-resource (for 68K) or fragment (for PPC)after locating and loading it in. Check out Metrowerks CodeWarrior which has a huge selection of examples to do 68K, PPC and FAT plug-ins.

Good luck!
0
 

Author Comment

by:m94_ols
ID: 1291591
I have thought about QuickDraw 3D but not the other options. Excellent!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java ^ examples 8 75
modThree challenge 4 155
child constructor and parent constructor, overriding and overloading 6 95
noX challenge 17 144
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question