Solved

Writing plugins

Posted on 1997-07-17
2
270 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
2 Comments
 
LVL 3

Accepted Solution

by:
mwt earned 100 total points
Comment Utility
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
Comment Utility
I have thought about QuickDraw 3D but not the other options. Excellent!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Host to IP 7 73
iSeries DB2 Query 2 83
move a line in eclipse 3 60
Specific format 21 140
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now